I didn't try it since it's big comparing to microcoap (because it implements both client and server). There is no example for libcoap so you will have to register an UDP socket to the new network stack as well. IMHO, if you don't need a CoAP client , you should use microcoap.
Baptiste 2015-10-29 15:02 GMT+01:00 Ilias Seitanidis <[email protected]>: > Hi Baptiste, > do you know if libcoap is working on the new stack? > Best, > Ilias > > 2015-10-29 14:56 GMT+01:00 Baptiste Clenet <[email protected]>: >> >> Hi Illias, >> >> There is an example of the use of microcoap [1] but it hasn't been >> updated with the new network stack so it might not work. >> No microcoap doesn't take care about socket so you have to register a >> new UDP socket which will be redirected to your microcoap handle >> function. >> >> >> [1] https://github.com/RIOT-OS/applications/blob/master/microcoap/main.c >> >> >> 2015-10-29 12:52 GMT+01:00 Ilias Seitanidis <[email protected]>: >> > Hi ! To use CoAP in my R21 boards should I rite the code of socket >> > programming (open a udp port ,etc) or just use the coap library and it >> > takes >> > care about the socket? >> > Thank you in advance!!! >> > >> > _______________________________________________ >> > devel mailing list >> > [email protected] >> > https://lists.riot-os.org/mailman/listinfo/devel >> > >> >> >> >> -- >> Baptiste >> _______________________________________________ >> devel mailing list >> [email protected] >> https://lists.riot-os.org/mailman/listinfo/devel > > > > _______________________________________________ > devel mailing list > [email protected] > https://lists.riot-os.org/mailman/listinfo/devel > -- Baptiste _______________________________________________ devel mailing list [email protected] https://lists.riot-os.org/mailman/listinfo/devel
