PelionIoT / mbed-coap

CoAP C library - Builder and Parser for CoAP messages
Apache License 2.0
29 stars 16 forks source link

It would be good to have a function to initialize the contents of a coap_hdr for sending #64

Open jimsch opened 6 years ago

jimsch commented 6 years ago

There are a large number of default values that are checked for in the process of serializing out. These values are not always zero and thus need to be set as part of setting up the message prior to transmission. Having a function as part of the library which does this, and thus always does it optimally, is highly desirable.

jimsch commented 6 years ago

Applies to sn_coap_options_list_s as well as sn_coap_hdr_s.

ciarmcom commented 6 years ago

ARM Internal Ref: IOTCLT-2885