OpenWSN Firmware
rinfo.c File Reference
#include "openwsn.h"
#include "rinfo.h"
#include "opencoap.h"
#include "openqueue.h"
#include "packetfunctions.h"
#include "openserial.h"
#include "openrandom.h"
#include "board.h"
#include "idmanager.h"

Functions

owerror_t rinfo_receive (OpenQueueEntry_t *msg, coap_header_iht *coap_header, coap_option_iht *coap_options)
 Called when a CoAP message is received for this resource. More...
 
void rinfo_sendDone (OpenQueueEntry_t *msg, owerror_t error)
 The stack indicates that the packet was sent. More...
 
void rinfo_init ()
 Initialize this module. More...
 

Variables

const uint8_t rinfo_path0 [] = "i"
 A CoAP resource which indicates the board its running on. More...
 
rinfo_vars_t rinfo_vars
 

Function Documentation

owerror_t rinfo_receive ( OpenQueueEntry_t msg,
coap_header_iht coap_header,
coap_option_iht coap_options 
)

Called when a CoAP message is received for this resource.

Parameters
[in]msgThe received message. CoAP header and options already parsed.
[in]coap_headerThe CoAP header contained in the message.
[in]coap_optionsThe CoAP options contained in the message.
Returns
Whether the response is prepared successfully.
void rinfo_sendDone ( OpenQueueEntry_t msg,
owerror_t  error 
)

The stack indicates that the packet was sent.

Parameters
[in]msgThe CoAP message just sent.
[in]errorThe outcome of sending it.

Variable Documentation

const uint8_t rinfo_path0[] = "i"

A CoAP resource which indicates the board its running on.

rinfo_vars_t rinfo_vars