ESP32 NETWORK

tomcat2900
Posts: 8
Joined: Tue Jun 25, 2019 11:24 pm

ESP32 NETWORK

Postby tomcat2900 » Sat Oct 26, 2019 11:17 pm

Hello !

I want to make a WIFI network with up to ten ESP32 OR ESP8266 microcontrollers.

Assigned IP Addresses : 192.168.1.10-192.168.1.10 .

Please tell me how can I send a text message from
one ESP module to another one based on IP addresses ?

My command should look like this :

SEND "text message" TO 192.168.1.10

I don't want to use the UDP protocol to broadcast the
message to all the network because of the data loss...

Can you help me, please ?

Thank You !

PeterR
Posts: 621
Joined: Mon Jun 04, 2018 2:47 pm

Re: ESP32 NETWORK

Postby PeterR » Mon Oct 28, 2019 7:18 pm

Have a look at the tcp client & server examples. TCP is a connection based protocol so its all or nothing.
Or setup an HTTP server and create an end point. That way you can test your server with a browser, cuts the debugging down. The sending ESP would use an Http client, again I am sure that there will be examples.

You will need to UDP, your own UDP code or mDNS, to announce the IP address of the devices on your network. Otherwise static addresses but that will be a pain.
& I also believe that IDF CAN should be fixed.

Who is online

Users browsing this forum: kaxx1975 and 136 guests