Problem in merging coap_client example with cxx example

Harshad P
Posts: 7
Joined: Wed Apr 14, 2021 6:27 am

Problem in merging coap_client example with cxx example

Postby Harshad P » Wed Apr 14, 2021 1:33 pm

Hello all,

I tried to merge Coap_Clienthttps://github.com/espressif/esp-idf/tr ... oap_client example with one of the "cxx" example i.e sensor_mcp9808https://github.com/espressif/esp-idf/tr ... or_mcp9808 However I am facing the following error

```
/home/harshad/esp/esp-idf/examples/cxx/experimental/sensor_mcp9808/main/sensor_mcp9808.cpp: In function 'void coap_example_client(void*)':
/home/harshad/esp/esp-idf/examples/cxx/experimental/sensor_mcp9808/build/config/sdkconfig.h:93:39: error: invalid conversion from 'int' to 'coap_log_t' [-fpermissive]
#define CONFIG_COAP_LOG_DEFAULT_LEVEL 4
```

I have put protocols_components into cxx_experimental_components and all library paths are included properly.
Please help on the issue,

Regards,

Who is online

Users browsing this forum: Google [Bot] and 168 guests