COAP experiment using two ESP32 as client and server

prateek1069
Posts: 6
Joined: Wed Oct 04, 2017 10:54 pm

COAP experiment using two ESP32 as client and server

Postby prateek1069 » Wed Oct 04, 2017 11:13 pm

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.
Attachments
coap_experiment_problem.PNG
coap_experiment_problem.PNG (132.89 KiB) Viewed 5712 times

prateek1069
Posts: 6
Joined: Wed Oct 04, 2017 10:54 pm

Re: COAP experiment using two ESP32 as client and server

Postby prateek1069 » Sat Oct 14, 2017 8:08 pm

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.
Attachments
target_uri.PNG
target_uri.PNG (101.98 KiB) Viewed 5662 times
coap_experiment_problem.PNG
coap_experiment_problem.PNG (97.88 KiB) Viewed 5662 times

prateek1069
Posts: 6
Joined: Wed Oct 04, 2017 10:54 pm

Re: COAP experiment using two ESP32 as client and server

Postby prateek1069 » Thu Oct 26, 2017 8:32 pm

I would appreciate any help :)

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: COAP experiment using two ESP32 as client and server

Postby WiFive » Thu Oct 26, 2017 11:46 pm

No that underlined number is not the port, you should just type the IP address.

Who is online

Users browsing this forum: Google [Bot], Majestic-12 [Bot] and 216 guests