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 Children
  • Hi,

    I am taking over this case from Øyvind.

    Øyvind said:
    The latest SDK v4.1.0 should now be using Openthread CoAP I am told, and has a Thread Secure OTA DFU Example which you should use instead. 

    This is not true. The latest SDK v4.1.0 still uses IoT coap for Thread DFU, just as you pointed out, if you see the makefile in Thread_v4.1.0\examples\thread\dfu\client\pca10056\blank\armgcc\Makefile

    You can see it includes the following files:
      $(SDK_ROOT)/components/iot/background_dfu/background_dfu_block.c \
      $(SDK_ROOT)/components/iot/background_dfu/background_dfu_operation.c \
      $(SDK_ROOT)/components/iot/background_dfu/background_dfu_state.c \
      $(SDK_ROOT)/components/iot/coap/coap.c \
      $(SDK_ROOT)/components/iot/coap/coap_block.c \
      $(SDK_ROOT)/components/iot/background_dfu/transport/coap/coap_dfu.c \
      $(SDK_ROOT)/components/iot/coap/coap_message.c \
      $(SDK_ROOT)/components/iot/coap/coap_option.c \
      $(SDK_ROOT)/components/iot/coap/coap_queue.c \
      $(SDK_ROOT)/components/iot/coap/coap_resource.c \
      $(SDK_ROOT)/components/iot/coap/coap_transport_ot.c \
    I am sorry for the misunderstanding there for a moment. Back to your question. If you are using nRF5 for Thread & Zigbee v4.1.0 I recommend you keep using the IoT CoAP library, as we found in the earlier ticket you linked to that there was problem when using both CoAP libraries simulteaneously, and IoT CoAP is the only one supported by Thread DFU.
    On a side note, there are no plans to have new releases of nRF5 SDK for Thread at the present moment, as we hare focusing on developing using nRF Connect SDK (NCS for short) for Thread instead. All new Thread features to come will most likely only be available in NCS, but we still have full support for nRF5 SDK.
    In NCS updates work a bit different than Thread DFU, you can read more about updates for Thread NCS in the documentation for the UpdateHub embedded Firmware Over-The-Air (FOTA) sample (see step 4.4 for building for IEEE 802.15.4/Thread)

    Best regards,

    Marjeris

Related