run a webserver for firewall check
This commit is contained in:
parent
458e3fbc6f
commit
dfb92d6bf9
1 changed files with 8 additions and 0 deletions
|
@ -42,4 +42,12 @@ void setup()
|
||||||
void loop()
|
void loop()
|
||||||
{
|
{
|
||||||
firewallApi->handle_client();
|
firewallApi->handle_client();
|
||||||
|
WiFiClient client = wifiServer.available();
|
||||||
|
if (client)
|
||||||
|
{
|
||||||
|
Serial.print("Client connected with IP:");
|
||||||
|
Serial.println(client.remoteIP());
|
||||||
|
client.stop();
|
||||||
|
Serial.println("Client disconnected");
|
||||||
|
}
|
||||||
}
|
}
|
Reference in a new issue