Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By MrOmar
#77590 Thanks RichardS for your reply :)

actually the server goes very well if I just put client[i].stop() after receiving data from each client, in the first loop. but that break my second rule and make clients non simultaneous.

here is Client_Registered code:
Code: Select allbool Client_Registered(WiFiClient cl)
{
  for(int i=0;i<Clients_NUM;++i)
  {
    if(Clients[i] && cl.remoteIP()==Clients[i].remoteIP()) return 1;
  }
  return 0;
}


on the other hand, the "INTEGER" is actually a single digit number (1,2,.. number of the client), sorry for that mistake

THANKS :D
User avatar
By MrOmar
#77601 Thanks RichardS for your reply :)

actually the server goes very well if I just put client[i].stop() after receiving data from each client, in the first loop. but that break my second rule and make clients non simultaneous.

here is Client_Registered code:
Code: Select allbool Client_Registered(WiFiClient cl)
{
  for(int i=0;i<Clients_NUM;++i)
  {
    if(Clients[i] && cl.remoteIP()==Clients[i].remoteIP()) return 1;
  }
  return 0;
}


on the other hand, the "INTEGER" is actually a single digit number (1,2,.. number of the client), sorry for that mistake

THANKS :D