diff --git a/WifiESP.cpp b/WifiESP.cpp index 36040f1..fd0a4b2 100644 --- a/WifiESP.cpp +++ b/WifiESP.cpp @@ -124,7 +124,18 @@ void WifiESP::loop() { // Do something with outboundRing // call sendData - + int clientId=outboundRing->read(); + if (clientId>=0) { + int count=outboundRing->count(); + DIAG(F("Wifi reply client=%d, count=:%d"), clientId,count); + { + char buffer[count]; + for(uint8_t i=0;iread(); + sendData(clientId, buffer, count); + } + } + static unsigned long last = 0; if (millis() - last > 60000) { last = millis();