From 701bc0a837d2f281c721d5caf103e035e3bcc89a Mon Sep 17 00:00:00 2001 From: travis-farmer Date: Thu, 2 Nov 2023 14:00:02 -0400 Subject: [PATCH] keeping up to date - cleaning --- Wifi_NINA.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Wifi_NINA.cpp b/Wifi_NINA.cpp index fdf496a..bd32bef 100644 --- a/Wifi_NINA.cpp +++ b/Wifi_NINA.cpp @@ -284,8 +284,8 @@ void WifiNINA::loop() { } } WiFiClient client = server->available(); - if (client) { - ///while (!client) { + if (client == true) { + ///while (client.available() == true) { for (clientId=0; clientId=clients.size()) { - auto nc=new NetworkClient(client); + NetworkClient* nc=new NetworkClient(client); clients.push_back(*nc); - delete nc; + //delete nc; ip = client.remoteIP(); DIAG(F("New client %d, %d.%d.%d.%d"), clientId, ip[0], ip[1], ip[2], ip[3]); }