AT command to create TCP server

uTasker
Posts: 19
Joined: Mon Mar 15, 2021 10:15 pm

AT command to create TCP server

Postby uTasker » Mon Dec 26, 2022 11:59 pm

Hi All

I would like to have two TCP servers running - the first as HTTP server and the second as TELNET server.
By using the "AT+CIPSERVER=1,80" command I can connect to the ESP32 from a browser and return data and close the connection when finished. And it repeats correctly so I can refresh multiple times.
+AT+CIPSERVER?" returns "+CIPSERVER:1,80,"TCP",0"

Now I also do "AT+CIPSERVER=1,23" as well.

Now
+AT+CIPSERVER?" returns "+CIPSERVER:1,23,"TCP",0"

but the first time I connect with the browser the HTTP server works. But if I repeat there is never a further connection.

The telnet socket does connect and close multiple times.

What is the explanation for this? Can there not be multiple TCP servers? But why does the first one work just once?

Regards

Mark

Who is online

Users browsing this forum: No registered users and 95 guests