kb2ma / RIOT

RIOT - The friendly OS for IoT
https://github.com/RIOT-OS/RIOT/wiki
Other
0 stars 0 forks source link

Confirm handling of -EBADMSG response from coap_parse #13

Closed kb2ma closed 8 years ago

kb2ma commented 8 years ago

nanocoap's parse method returns -EBADMSG on an unknown critical option. Ensure gcoap handles this situation appropriately.

kb2ma commented 8 years ago

Handling is OK for now because gcoap does not handle confirmable requests. However, there is an issue with nanocoap, because we cannot specifically identify an unknown critical option. All parse failures return -EBADMSG. Created an issue to track this, so eventually we can accommodate confirmable requests.

kb2ma commented 8 years ago

Closed the issue in nanocoap. All parse failures are due to a bad option, so nanocoap works fine for now. Will deal with confirmable requests during development of that feature.