How to tell if a client is connect to a SoftAP
Posted: Fri Apr 29, 2016 7:21 pm
I am looking for a method to tell if a user is connected to the SoftAP access point on the ESP8266.
The following variables change when a user makes a request while connected to the SoftAP but show zeros when the client is connected and not making a request.
WiFiClient client = wifi.client();
Serial.print(", client.status=" + String(client.status()));
Serial.print(", client.available=" + String(client.available()));
Serial.print(", client.connected=" + String(client.connected()));
Serial.println(" client.remoteIP=" + String(client.remoteIP()));
How do you tell if a client is connected to the SoftAP ?
The following variables change when a user makes a request while connected to the SoftAP but show zeros when the client is connected and not making a request.
WiFiClient client = wifi.client();
Serial.print(", client.status=" + String(client.status()));
Serial.print(", client.available=" + String(client.available()));
Serial.print(", client.connected=" + String(client.connected()));
Serial.println(" client.remoteIP=" + String(client.remoteIP()));
How do you tell if a client is connected to the SoftAP ?