Skip to content

omit content-format option when COAP_CONTENTTYPE_NONE is given#42

Open
aschmidt75 wants to merge 1 commit into1248:masterfrom
aschmidt75:master
Open

omit content-format option when COAP_CONTENTTYPE_NONE is given#42
aschmidt75 wants to merge 1 commit into1248:masterfrom
aschmidt75:master

Conversation

@aschmidt75
Copy link
Copy Markdown

when calling coap_make_response with content_type == COAP_CONTENTTYPE_NONE (i.e. for an ACK response message), response will contain this option with a value of 65535 (-1, as defined in coap.h), but client may report this as an unknown content format.

added check, if COAP_CONTENTTYPE_NONE is given, omit the option. include otherwise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant