25 #ifndef SUIT_TRANSPORT_COAP_H
26 #define SUIT_TRANSPORT_COAP_H
47 #define SUIT_COAP_SUBTREE \
50 .methods=COAP_MATCH_SUBTREE | COAP_METHOD_GET | COAP_METHOD_POST | COAP_METHOD_PUT, \
51 .handler=coap_subtree_handler, \
52 .context=(void*)&coap_resource_subtree_suit \
82 ssize_t coap_subtree_handler(
coap_pkt_t *pkt, uint8_t *buf,
83 size_t len,
void *context);
88 typedef const struct {
90 const size_t resources_numof;
91 } coap_resource_subtree_t;
105 typedef int (*coap_blockwise_cb_t)(
void *arg,
size_t offset, uint8_t *buf,
size_t len,
int more);
110 extern const coap_resource_subtree_t coap_resource_subtree_suit;
116 COAP_BLOCKSIZE_32 = 1,
140 int suit_coap_get_blockwise_url(
const char *url,
141 coap_blksize_t blksize,
142 coap_blockwise_cb_t callback,
void *arg);
150 void suit_coap_trigger(
const uint8_t *url,
size_t len);