This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

CoAP libraries

Hi,

I am developing projects for street lightning system and I use in my projects many CoAP libraries. In my projects I use OpenThread and some peripherals like UART.

My question is, which library is best to use in my projects? Can I find some reference of CoAP libraries? 

Is native OpenThread libraries best to use?  Some examples use this librarby. 

Which library is best to use in DFU project? Now I´m using IoT CoAP library, but I have some problems and I get information, that is a deprecated library. 

(devzone.nordicsemi.com/.../coap-response-error)

Parents Reply
  • František said:
    Are you recommended to use Nordic CoAP API from SDKforThread\components\iot\coap\coap_api.h  in all my projects?  

     No, you should not use the IoT component. You should use <sdk root 4.1.0>\external\openthread\include\openthread\coap.h

    You should not use SDKforThread\components\iot at all. If you have based any project based on the outdated IoT compoent, you should start over again. Are you sure you are using Thread?

    There sere several examples that use the Openthread CoAP e.g. <sdk root 4.1.0>\examples\thread\simple_coap_server. Please see this link.

Children
Related