[riot-notifications] [RIOT-OS/RIOT] gcoap: multi-transport support (#16688)

benpicco notifications at github.com
Thu Aug 26 15:54:25 CEST 2021

`coap_pkt_t` already has

typedef struct {
    coap_hdr_t *hdr;                                  /**< pointer to raw packet   */
    uint8_t *token;                                   /**< pointer to token        */
    uint8_t *payload;                                 /**< pointer to payload      */
    uint16_t payload_len;                             /**< length of payload       */
    uint16_t options_len;                             /**< length of options array */
    coap_optpos_t options[CONFIG_NANOCOAP_NOPTS_MAX]; /**< option offset array     */
    uint32_t observe_value;                           /**< observe value           */
} coap_pkt_t;

adding another GCOAP  specific field there would be less bad than special-casing `_well_known_core_handler` IMHO

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210826/cfd71808/attachment.htm>

More information about the notifications mailing list