Building Coap Client project

Hi, I have just started evaluating nRF52840 using the dongle and Development Kit. I have successfully tested the Openthread network using CLI project. Now I want to try out Soap client and server projects. But when I try to build Soap client, I get

d:\Projects\nrf\coap_client\src\coap_client_utils.c:8:10: fatal error: coap_server_client_interface.h: No such file or directory
8 | #include <coap_server_client_interface.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

I am using SDK 2.0.0.

What is going wrong here?

Cheers,

Kaushalyasat

Parents
  • I think I can answer for this myself, in case someone else comes this way.

    Initially I looked at how the include file paths are specified in the nRF Connect SDK toolchain. I found this is managed through Cmake and specified in target_include_directories(...)

    So when I looked at the Cmake.txt in the Coap client, I saw 

    target_include_directories(app PUBLIC ../coap_server/interface)

    This gives the answer that we need Coap server in the same folder level as Coap client. 

    So I created Coap Server project in the same location as my Coap client project and the problem was solved.

    Cheers,

    kaushalyasat

     

Reply
  • I think I can answer for this myself, in case someone else comes this way.

    Initially I looked at how the include file paths are specified in the nRF Connect SDK toolchain. I found this is managed through Cmake and specified in target_include_directories(...)

    So when I looked at the Cmake.txt in the Coap client, I saw 

    target_include_directories(app PUBLIC ../coap_server/interface)

    This gives the answer that we need Coap server in the same folder level as Coap client. 

    So I created Coap Server project in the same location as my Coap client project and the problem was solved.

    Cheers,

    kaushalyasat

     

Children
No Data
Related