It appears that flush() has been deprecated in NetworkClient.
To overcome the warning I just changed flush() to clear() in the locations reported.
Warning reported:-
.pio/libdeps/esp32s3/WebSockets/src/WebSocketsClient.cpp: In member function 'void WebSocketsClient::clientDisconnect(WSclient_t*, const char*)':
.pio/libdeps/esp32s3/WebSockets/src/WebSocketsClient.cpp:573:31: warning: 'virtual void NetworkClient::flush()' is deprecated: Use clear() instead. [-Wdeprecated-declarations]
573 | client->tcp->flush();
C:/Users/Ken/.platformio/packages/framework-arduinoespressif32/libraries/Network/src/NetworkClient.h:61:8: note: declared here
61 | void flush(); // Print::flush tx
It appears that flush() has been deprecated in NetworkClient.
To overcome the warning I just changed flush() to clear() in the locations reported.
Warning reported:-
.pio/libdeps/esp32s3/WebSockets/src/WebSocketsClient.cpp: In member function 'void WebSocketsClient::clientDisconnect(WSclient_t*, const char*)':
.pio/libdeps/esp32s3/WebSockets/src/WebSocketsClient.cpp:573:31: warning: 'virtual void NetworkClient::flush()' is deprecated: Use clear() instead. [-Wdeprecated-declarations]
573 | client->tcp->flush();
C:/Users/Ken/.platformio/packages/framework-arduinoespressif32/libraries/Network/src/NetworkClient.h:61:8: note: declared here
61 | void flush(); // Print::flush tx