Page 1 of 1

COAP experiment using two ESP32 as client and server

Posted: Wed Oct 04, 2017 11:13 pm
by prateek1069
Hi,

Did anyone try the coap example (server/client experiment)? If yes, could you please explain your experiment in detail here. I referenced the github link for examples (https://github.com/espressif/esp-idf/tr ... /protocols), but without any documentation, I am having some trouble. So, I am trying the same coap experiment between two esp32 as server/client, but it is not clear what to expect from coap_server and coap_client code. I have attached the screenshot of two terminal- one each for client and server terminal. The problem is that the 'client' is not printing/displaying any data. I am not sure what to do next or if I am doing it correctly or not.

Re: COAP experiment using two ESP32 as client and server

Posted: Sat Oct 14, 2017 8:08 pm
by prateek1069
Hi,

I solved the above mentioned problem. The boards were somehow not correctly connected to the APs. That was a silly mistake :) .

However, I have a new issue now and I need some help (I am new to ESP32 :)). What exactly should the "Target uri" be for two boards to start communicating over wifi (for coap experiment)? I am using the syntax at client as 'coap://ip address(of server):port' in "make menuconfig --> example configuration"...For example coap://10.13.215.136:4629/ (see attached) but getting an error 'DNS lookup failed'. I am not so sure if thats the right way of doing it. Am I doing anything wrong here? Pls help.

Re: COAP experiment using two ESP32 as client and server

Posted: Thu Oct 26, 2017 8:32 pm
by prateek1069
I would appreciate any help :)

Re: COAP experiment using two ESP32 as client and server

Posted: Thu Oct 26, 2017 11:46 pm
by WiFive
No that underlined number is not the port, you should just type the IP address.