any libcoap users?

Hi all, after having spent a good portion of the day trying to write a libcoap wrapper to be able to send requests without prodding the CoAP implementation internals and being nowhere near finished with even the basics, I was wondering: There are probably people on this list who already have some experience with (RIOT and) libcoap and would like to share their code or knowledge with me? I'm probably just missing something essential here, and I'd rather learn that sooner than later :wink:

Cheers, Lotte

I am looking for examples or information on how to write a simple CoAP server application with RIOT. Is libcoap the only library anyone have attempted to use or are there others?

Best regards, Joakim Gebart www.eistec.se

Hi, for using libcoap there is this PR: [1]. For a libcoap server microcoap would be the better choice I guess, but though there were talks about porting it for RIOT, the port is still missing (but should not be so complicated).

Cheers, Martine

[1] https://github.com/RIOT-OS/RIOT/pull/1801 [2] https://github.com/1248/microcoap

Do you know if microcoap supports subscriptions? (CoAP OBSERVE)

BR, Joakim www.eistec.se

Hi, as far as I know not so far, as far as I know, though the option number is already reserved.

Regards, Martine

Hi again, just made a quick port for microcoap [1]. Feel free to play with it around :wink:

Cheers, Martine

[1] https://github.com/RIOT-OS/RIOT/pull/2383

Hi Martine,

Hi again, just made a quick port for microcoap [1]. Feel free to play with it around :wink:

Oooh, that looks promising. Thanks a lot! :slight_smile:

Cheers, Lotte