Fragile communication between two esp's

Hello brains. This is my messed up hardware:

A nodemcu (RX) controlling a P10 panel and receiving a String from the TX (esp01s) via port 80 of my home wifi. The only part of the code that is relevant is this one because it deals with communication between the two esp's:

 if(WiFi.status() == WL_CONNECTED) {
   if(bytebotaodir == 1) { 
      client.connect(server, 80);
      client.println("ABCDEF");
      client.flush();
      client.stop();
    }   

To test how fragile this communication is I downloaded a small TCP Client app from the play store. I entered the same IP and port 80 in it and clicked connect.

That alone was enough for my RX-TX duo to stop communicating.

Not even closing the APP did communication return between the two esp's. I can't go through with it like this. The RX (esp01s) will be a few meters away from the TX within the same wifi network. But it can't be that easy to interrupt this communication.

What can I try here without increasing the complexity so much ?

NOTE: I will research how to make the IP invisible. But I don't even know if that's possible. Maybe on to use port 443. But what would it look like ?

Anybody know ? ...Thanks

Start by not using ports that are assigned by IANA..
Port 80 and 443 are both well known ports..
Thinking TCP is wrong in this scenario..
Maybe try UDP, no connects needed sender broadcast receiver listens..
Some examples..
UDP Sender
UDP receiver

good luck.. ~q

Thanks. So I'm going to research UDP, and also esp-now.

If it works I'll come back with the code.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.