I'm working on a project, that needs an Arduino board and two ESP8266 boards.
To make it short, the Arduino has some sensors connected to it and reads its values, sends the data through serial to one esp8266 (client), which stores it to its variables, and then connects to a center panel, which is another esp8266 (server), and send the data through UDP. The server receives the data and saves it to a file. The server esp8266 also runs a TCP server for the user to be able to see the data from the sensors.
I have tested the UDP and it works. The server creates a file and stores the data that the client has sent to it.
I have tested and the TCP server works. I connected to the server through the phone and it answers back with the strings saved in the file.
But, for some reason if I create both servers, the UDP server stops working. It no longer receives the data from the other esp8266. Which, by the way, the UDP server is the second server to start in my file.
I have been reading the nodemcu docs, and around the web, but didn't find nothing.
Could it be that it can only run either a TCP server or a UDP server, but not both at the same time?
Thank you in advance!