SUIT secure firmware updates over CoAP.
More...
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
◆ SUIT_COAP_SUBTREE
#define SUIT_COAP_SUBTREE |
Value: { \
.path="/suit/", \
.context=(void*)&coap_resource_subtree_suit \
}
@ COAP_METHOD_GET
GET request (no paylod)
@ COAP_METHOD_PUT
PUT request (update resource with payload)
@ COAP_METHOD_POST
POST request (resource processes payload)
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.
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.