Hello,
is there somewhere a ON/OFF verbose option to cancell websocket message
example
Cpt= 1 , BMP085 P. 991 mBar , Humid: 50.70,Temp: 18.50,DS18B20.0 = 18.44 C , Slider = 0 .
WebSocket client #1 EVT Data
Msg :1s22
225
22
Cpt= 2 , BMP085 P. 991 mBar , Humid: 50.70,Temp: 18.50,DS18B20.0 = 18.31 C , Slider = 225 .
WebSocket client #1 EVT Data
Msg :1s52
531
52
Cpt= 3 , BMP085 P. 991 mBar , Humid: 51.40,Temp: 19.20,DS18B20.0 = 18.38 C , Slider = 531 .
Cpt= 4 , BMP085 P. 991 mBar , Humid: 50.80,Temp: 18.50,DS18B20.0 = 18.31 C , Slider = 531 .
… etc ….
Cpt= 21 , BMP085 P. 991 mBar , Humid: 50.80,Temp: 18.50,DS18B20.0 = 18.31 C , Slider = 531 .
Cpt= 22 , BMP085 P. 991 mBar , Humid: 50.80,Temp: 18.50,DS18B20.0 = 18.44 C , Slider = 531 .
because when i move the slider ,i get the message
WebSocket client #1 EVT Data
Msg :1s52
531
52
Hello,
How can i delete the Socket Msg
sended by handleWebSocketMessage(arg, data, len);
example :
Msg :1s52
531
52
void onEvent(AsyncWebSocket *server, AsyncWebSocketClient *client, AwsEventType type, void *arg, uint8_t *data, size_t len) {
switch (type) {
case WS_EVT_CONNECT:
Serial.printf("WebSocket client #%u connected from %s\n", client->id(), client->remoteIP().toString().c_str());
break;
case WS_EVT_DISCONNECT:
Serial.printf("WebSocket client #%u disconnected\n", client->id());
break;
case WS_EVT_DATA:
// suppression partielle du message 01/06/2024
// Serial.printf("WebSocket client #%u EVT Data\n", client->id());
handleWebSocketMessage(arg, data, len);
break;
case WS_EVT_PONG:
case WS_EVT_ERROR:
break;
}
}
image PB_socket_Msg_code.jpg on github …