Scusa @gpb01, poi ti prometto che non ti rompo più le scatole, puoi provare a rendere il metodo flushBuffer() così:
void WebClientWifi::flushBuffer () {
if (avail > 0) {
DPRINT (F("Flushing "));
DPRINT (avail);
DPRINTLN (F(" bytes to client"));
#ifndef WEBBINO_NDEBUG
size_t written =
#endif
internalClient.write ((const uint8_t *) buf, avail);
DPRINT (F("Actually flushed: "));
DPRINT (written);
DPRINTLN (F(" bytes"));
avail = 0;
}
}
? Almeno vediamo se i byte vengono scritti o meno, perché se li passo alla write() e questa non li invia, non saprei che farci.
Con ESP standalone:
New client
Request for "/index.html?state=on"
Processing replacement tag: "WEBBINO_VER"
Replacement is: "0.9.0"
Flushing 256 bytes to client
Actually flushed: 256 bytes
Flushing 256 bytes to client
Actually flushed: 256 bytes
Processing replacement tag: "ST_ON_CHK"
Replacement is: "checked"
Processing replacement tag: "ST_OFF_CHK"
Replacement is: ""
Flushing 197 bytes to client
Actually flushed: 197 bytes
Client disconnected