[riot-notifications] [RIOT-OS/RIOT] nanocoap: Move application functionality to nanocoap sock (#11488)
notifications at github.com
Sun Sep 15 13:04:59 CEST 2019
> Would anything go wrong if someone used, for example, coap-build_reply in a gcoap handler?
For this specific example, yes you can do this, and you must use the Buffer API for the rest of this response. Also, you must manually add any Observe option to the response. See gcoap_resp_init().
I respond in more detail in a [comment](https://github.com/RIOT-OS/RIOT/issues/12201#issuecomment-531230150) on 12201. IMO for a user the choice of gcoap vs. nanocoap sock is challenging enough. Layering on documentation to selectively use the Buffer API in gcoap or the Packet API in nanocoap requires qualifications that would be difficult to explain clearly and simply.
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications