Loading...
Searching...
No Matches

SUIT secure firmware updates over CoAP. More...

Detailed Description

SUIT secure firmware updates over CoAP.

SUIT CoAP helper API

Author
Kaspar Schleiser kaspa.nosp@m.r@sc.nosp@m.hleis.nosp@m.er.d.nosp@m.e
Francisco Molina franc.nosp@m.ois-.nosp@m.xavie.nosp@m.r.mo.nosp@m.lina@.nosp@m.inri.nosp@m.a.fr
Alexandre Abadie alexa.nosp@m.ndre.nosp@m..abad.nosp@m.ie@i.nosp@m.nria..nosp@m.fr

Macros

#define SUIT_COAP_SUBTREE
 SUIT CoAP endpoint entry.
 

Macro Definition Documentation

◆ SUIT_COAP_SUBTREE

#define SUIT_COAP_SUBTREE
Value:
{ \
.path="/suit/", \
.context=(void*)&coap_resource_subtree_suit \
}
@ COAP_METHOD_GET
GET request (no paylod)
Definition coap.h:172
@ COAP_METHOD_PUT
PUT request (update resource with payload)
Definition coap.h:174
@ COAP_METHOD_POST
POST request (resource processes payload)
Definition coap.h:173
ssize_t coap_subtree_handler(coap_pkt_t *pkt, uint8_t *resp_buf, size_t resp_buf_len, coap_request_ctx_t *context)
Generic coap subtree handler.
#define COAP_MATCH_SUBTREE
Path is considered as a prefix when matching.
Definition nanocoap.h:129

SUIT CoAP endpoint entry.

In order to use, include this header, then add SUIT_COAP_SUBTREE to the nanocoap endpoint array. Mind the alphanumerical sorting!

See examples/suit_update for an example.

Definition at line 43 of file coap.h.