Re: ESPAsyncWebServer (AsyncWebSocket) ws.printf Doesn't Wor
Posted: Mon Feb 03, 2020 3:33 pm
Here is what its doing, its calling a standard printf function that was referred to in the client referenced by the ID
I am assuming that is there so you can override and define your own printf for that client ID?
I am assuming that is there so you can override and define your own printf for that client ID?
Code: Select all
size_t AsyncWebSocket::printf(uint32_t id, const char *format, ...){
AsyncWebSocketClient * c = client(id);
if(c){
va_list arg;
va_start(arg, format);
size_t len = c->printf(format, arg);
va_end(arg);
return len;
}
return 0;
}