arduinoWebSockets icon indicating copy to clipboard operation
arduinoWebSockets copied to clipboard

changed from deprecated flush() to clear()

Open jbuck2005 opened this issue 3 months ago • 1 comments

'virtual void NetworkClient::flush()' is deprecated: Use clear() instead. [-Wdeprecated-declarations]

jbuck2005 avatar Aug 27 '25 20:08 jbuck2005

looks like that the flush to clear change is only valide for the ESP32 3.x only way to do this then is to have some if defined for ESP32 and a check for ESP_ARDUINO_VERSION_MAJOR >= 3

clear is not part of default arduino API not sure why the ESP32 changed this... https://docs.arduino.cc/language-reference/funktionen/communication/stream/

Links2004 avatar Aug 27 '25 20:08 Links2004