The use of the ESP8266 in the world of IoT

User avatar
By ESPBeginner22
#83609 Good day everyone,

Here I had made 2 of NodeMCU as client and they will keep sending sensor reading to 1 of NodeMCU as sever throught a router. But now I would like to add a webserver on the server NodeMCU, and I wish to set the 3rd connected client to access for the webserver.
So, I would like to know is that anyway can achieve for this result.
Example like
if (clients<2)
{
//Listen sensor reading
}
else if (clients>3)
{
//html
}
Any suggestion/solution is greatly appreciated. :D