void wsMessageReceived(WebSocket& socket, const String& message) { //Serial.printf("WebSocket message received:\r\n%s\r\n", message.c_str()); char buf[22]; dtostrf(pf, 10, 8, buf); socket.sendString(buf); }
void wsMessageReceived(WebSocket& socket, const String& message) { Serial.printf("WebSocket message received:\r\n%s\r\n", message.c_str()); String response = "Echo: " + message; socket.sendString(response); }