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.
COAP experiment using two ESP32 as client and server
-
- Posts: 6
- Joined: Wed Oct 04, 2017 10:54 pm
COAP experiment using two ESP32 as client and server
- Attachments
-
- coap_experiment_problem.PNG (132.89 KiB) Viewed 6227 times
-
- Posts: 6
- Joined: Wed Oct 04, 2017 10:54 pm
Re: COAP experiment using two ESP32 as client and server
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.
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 (101.98 KiB) Viewed 6177 times
-
- coap_experiment_problem.PNG (97.88 KiB) Viewed 6177 times
-
- Posts: 6
- Joined: Wed Oct 04, 2017 10:54 pm
Re: COAP experiment using two ESP32 as client and server
I would appreciate any help
Re: COAP experiment using two ESP32 as client and server
No that underlined number is not the port, you should just type the IP address.
Who is online
Users browsing this forum: No registered users and 73 guests