[riot-users] [Riot] How to send packet to Coap server

Ken Bannister kb2ma at runbox.com
Mon Jan 9 17:49:25 CET 2017


Alberto,

You have a few options:

1) gcoap - See the link on the wiki [1] to the example. As the primary 
author, I'm kind of partial to it. :-)

2) nanocoap - There is a link to it's source from the gcoap entry on the 
wiki. It's an external package, but developed by Kaspar. There is a 
server-based example [3], but it can act as a client also. gcoap uses 
some of its functionality, and I also wrote a comparison with gcoap in a 
PR [2].

3) yacoap - It's a pull request [4], but provides client-based 
functionality to microcoap.

4) libcoap - There is a package for it [5], but it's oversized for 
resource constrained environments.

Check them out, or as Kaspar just posted, let us know your particular 
requirements.

Ken

[1] https://github.com/RIOT-OS/RIOT/wiki/Example-Applications
[2] https://github.com/RIOT-OS/RIOT/pull/6117
[3] https://github.com/RIOT-OS/RIOT/tree/master/examples/nanocoap_server
[4] https://github.com/RIOT-OS/RIOT/pull/5830
[5] https://github.com/RIOT-OS/RIOT/tree/master/pkg/libcoap

On 01/09/2017 11:18 AM, Alberto Ciolini wrote:
> How to send "gnrc_pktsnip_t" packet to Server Coap?
>



More information about the users mailing list