libcoap  4.1.1
 All Data Structures Files Functions Variables Typedefs Macros Groups Pages
Macros | Functions | Variables
coap-observer.c File Reference
#include "config.h"
#include "net/uip-debug.h"
#include <string.h>
#include "debug.h"
#include "coap.h"

Go to the source code of this file.

Macros

#define BUFSIZE   20
 

Functions

 PROCESS (coap_server_process,"CoAP server process")
 
void init_coap ()
 
void message_handler (struct coap_context_t *ctx, const coap_address_t *remote, coap_pdu_t *sent, coap_pdu_t *received, const coap_tid_t id)
 
 PROCESS_THREAD (coap_server_process, ev, data)
 

Variables

static coap_context_tcoap_context
 
static coap_address_t dst
 
static char resource [] = "/s/light"
 
static coap_tick_t last_seen = 0
 
AUTOSTART_PROCESSES & coap_server_process
 

Macro Definition Documentation

#define BUFSIZE   20

Function Documentation

void init_coap ( )

Definition at line 56 of file coap-observer.c.

void message_handler ( struct coap_context_t ctx,
const coap_address_t *  remote,
coap_pdu_t sent,
coap_pdu_t received,
const coap_tid_t  id 
)

Definition at line 96 of file coap-observer.c.

PROCESS ( coap_server_process  ,
"CoAP server process"   
)
PROCESS_THREAD ( coap_server_process  ,
ev  ,
data   
)

Definition at line 112 of file coap-observer.c.

Variable Documentation

coap_context_t* coap_context
static

Definition at line 41 of file coap-observer.c.

AUTOSTART_PROCESSES& coap_server_process

Definition at line 53 of file coap-observer.c.

coap_address_t dst
static

Definition at line 44 of file coap-observer.c.

coap_tick_t last_seen = 0
static

Definition at line 50 of file coap-observer.c.

char resource[] = "/s/light"
static

Definition at line 47 of file coap-observer.c.