OpenWSN Firmware
rleds.c File Reference
#include "openwsn.h"
#include "rleds.h"
#include "opencoap.h"
#include "packetfunctions.h"
#include "leds.h"
#include "openqueue.h"

Functions

owerror_t rleds_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 rleds_sendDone (OpenQueueEntry_t *msg, owerror_t error)
 The stack indicates that the packet was sent. More...
 
void rleds__init ()
 

Variables

rleds_vars_t rleds_vars
 A CoAP resource which allows an application to GET/SET the state of the error LED. More...
 
const uint8_t rleds_path0 [] = "l"
 

Function Documentation

owerror_t rleds_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 rleds_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 rleds_path0[] = "l"
rleds_vars_t rleds_vars

A CoAP resource which allows an application to GET/SET the state of the error LED.