From 35cba02ee7990fa8d6bbcc05e3b8328b5db581f2 Mon Sep 17 00:00:00 2001 From: Harald Barth Date: Sun, 26 Sep 2021 10:59:07 +0200 Subject: [PATCH] outboundRing uses sendData --- WifiESP.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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();