Want to connection from ap to 2 client means 2 client connected to ap.Ap connection Log file showing same that 2 client connected with that ap.
But in reality the Client.connected only able to connect 1 so only 1 device is working and second one not.But if adding second one then that one also working fine if the first client disconnected manually.
Below is the code for connection client.connected() only able to connect 1 instead of all clients available in the network.I am using arduino,ap,client and static network connection.What i am doing wrong in coding can u please help me.
EthernetClient client = server.available();
if (client) {
client.println("Ready");
while (client.connected()) {
if (client.available()) {
I tried to replace the library.But getting so many errors. Socket.h not available. I placed a socket h from online resource of library one still so many errors in socket .h one infact.
Is arduino ethernet 2.1 can handle multiple connection at a same time.Or any other way to handle.Why not arduino take care about that and make the library where it can support multiple clients simultaneously.
I am trying to repeat the process or connection to connect the second client (though the 2 server only declared but not in use in code). If that concept was working fine (means 2 connection made for 2 different clients) then i was thinking to run a loop to connect all clients available(connected) in that AP network and handle all of them by sending request/command. The concept of that kind of approach reason the 1 at a time is working fine so for 2 if i connect with 2 server/client code it might be work fine with that.