Hi,
I am run into a issue and i could not figure out why.
I set up a socket server on my desktop running Ubuntu and then i use ethernet->telnetClient example to create a socket client running on arduino-uno. I am using three arduino running the same software, but each arduino will keep sending different heart beat message to socket server, so that server knows which one is which.
If am running one arduino, it works perfectly...But if i start the 2nd one while the 1st one is running, both of the two arduino start disconnecting and connecting...(the firmware will check the connection status, if the connection lost, it will try to reconnect to the server). and the server will crash...
I really confused, why one arduino is working, two is not working. From the server side, i have tried to use multithreading to cope with the each connected arduino clients, does not work as expected.
For the same server, i create a same socket client running on my Unubtu machine, it works perfectly.
I also tried to create a two server, with the same IP address but different port, and let the two arduino connect to different port with different server---baiscally, two main function. when the 2nd one trying to connect, the server also failed.
Totally lost...
Please give me some idea on this and i will be very grateful.
Li