OpenWSN Firmware
opencoap.c File Reference
#include "openwsn.h"
#include "opencoap.h"
#include "openudp.h"
#include "openqueue.h"
#include "openserial.h"
#include "openrandom.h"
#include "packetfunctions.h"
#include "idmanager.h"
#include "opentimers.h"
#include "scheduler.h"

Macros

#define COAP_TOKEN   123
 

Functions

void opencoap_init ()
 Initialize this module. More...
 
void opencoap_receive (OpenQueueEntry_t *msg)
 Indicate a CoAP messages was received. More...
 
void opencoap_sendDone (OpenQueueEntry_t *msg, owerror_t error)
 Indicates that the CoAP response has been sent. More...
 
void opencoap_writeLinks (OpenQueueEntry_t *msg)
 Writes the links to all the resources on this mote into the message. More...
 
void opencoap_register (coap_resource_desc_t *desc)
 Register a new CoAP resource. More...
 
owerror_t opencoap_send (OpenQueueEntry_t *msg, coap_type_t type, coap_code_t code, uint8_t TKL, coap_resource_desc_t *descSender)
 Send a CoAP request. More...
 

Variables

opencoap_vars_t opencoap_vars
 

Macro Definition Documentation

#define COAP_TOKEN   123

Variable Documentation

opencoap_vars_t opencoap_vars