Skip to content

Where is the OPTION VALUE? #29

@Salv7

Description

@Salv7

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions