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

Problems on nrf52840 coap server to receive packages

Hi All, 
I want to implement a function to send data from the internet coap client to nrf52840 DK coap server. The nrf52840 runs .hex file which is one modified from Nordic Thread SDK example\thread\simple_coap_server, but I find that whether I use the otCoapAddResource registered function or the coap_default_handler function, neither received the coap data that internet coap client sent. I've caught coap message on the wpan0 interface of OTBR, but the function didn't work as if it hadn't received those package, that is the OTBR in wpan0 has received this package, but it doesn't deliver to nrf52840 DK coap sever. 
Therefore, how do I get the nrf52840 DK coap server to receive and process packages from coap client successfully?
I really appreciate any help you can provide. 
Best, 
Tao

Parents Reply
  • I believe that logging should be enabled by default in this example, over RTT. You can use J-Link RTT Viewer to see the logs.

    You can increase the log-level output from application by setting this config to Debug/4 in your sdk_config.h file:

    // <o> NRF_LOG_DEFAULT_LEVEL  - Default Severity level
     
    // <0=> Off 
    // <1=> Error 
    // <2=> Warning 
    // <3=> Info 
    // <4=> Debug 
    
    #ifndef NRF_LOG_DEFAULT_LEVEL
    #define NRF_LOG_DEFAULT_LEVEL 4
    #endif

    For more details about logging from OpenThread stack, see OpenThread logging.

Children
Related