From dfb92d6bf92b8cc1fba7232c73d05e2d56bc0d0f Mon Sep 17 00:00:00 2001 From: Florian Hoss Date: Tue, 3 May 2022 20:32:40 +0200 Subject: [PATCH] run a webserver for firewall check --- ESPFirewall/src/main.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ESPFirewall/src/main.cpp b/ESPFirewall/src/main.cpp index 04b8c05..43d6267 100644 --- a/ESPFirewall/src/main.cpp +++ b/ESPFirewall/src/main.cpp @@ -42,4 +42,12 @@ void setup() void loop() { 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"); + } } \ No newline at end of file