You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I loaded microcoap on ARDUINO DUE. When I receive a packet from a CoAP client (mozilla firefox with Copper plugin), where I can find options number and his value?
I created a resource called Alice.
I see that inpkt->opts[0].num contains this binary value: 00111011. By referring to http://tools.ietf.org/pdf/rfc7252.pdf (section 3.1) I suppose that the first four bits (0011=3 in decimal) are the OPTION DELTA, the last four bits (1011=11 in decimal) are the OPTION LENGTH. By referring to the "Table 7: CoAP Option Numbers" of the previous CoAP document, I see that this option is Uri-Host (number 3), but I don' t know where are the 11 bytes of the OPTION VALUE. Where are them? Are my assumpions right?
The text was updated successfully, but these errors were encountered:
When a packet is received, coap_parse() will break it apart and load it in to elements of the structures. The values in the structures are already decoded. In the example main.c:
I loaded microcoap on ARDUINO DUE. When I receive a packet from a CoAP client (mozilla firefox with Copper plugin), where I can find options number and his value?
I created a resource called Alice.
I see that inpkt->opts[0].num contains this binary value: 00111011. By referring to http://tools.ietf.org/pdf/rfc7252.pdf (section 3.1) I suppose that the first four bits (0011=3 in decimal) are the OPTION DELTA, the last four bits (1011=11 in decimal) are the OPTION LENGTH. By referring to the "Table 7: CoAP Option Numbers" of the previous CoAP document, I see that this option is Uri-Host (number 3), but I don' t know where are the 11 bytes of the OPTION VALUE. Where are them? Are my assumpions right?
The text was updated successfully, but these errors were encountered: