@@ -10,7 +10,7 @@ static volatile unsigned long wsLastLiveTime = 0; // WLEDMM
1010// uint8_t* wsFrameBuffer = nullptr;
1111
1212#if !defined(ARDUINO_ARCH_ESP32) || defined(WLEDMM_FASTPATH) // WLEDMM
13- #define WS_LIVE_INTERVAL 160
13+ #define WS_LIVE_INTERVAL 120
1414#else
1515#define WS_LIVE_INTERVAL 80
1616#endif
@@ -19,14 +19,14 @@ void wsEvent(AsyncWebSocket * server, AsyncWebSocketClient * client, AwsEventTyp
1919{
2020 if (type == WS_EVT_CONNECT){
2121 // client connected
22- USER_PRINTLN (F (" WS client connected." ));
22+ DEBUG_PRINTLN (F (" WS client connected." ));
2323 sendDataWs (client);
2424 } else if (type == WS_EVT_DISCONNECT){
2525 // client disconnected
2626 if (client->id () == wsLiveClientId) wsLiveClientId = 0 ;
27- USER_PRINTLN (F (" WS client disconnected." ));
27+ DEBUG_PRINTLN (F (" WS client disconnected." ));
2828 } else if (type == WS_EVT_DATA){
29- USER_PRINTLN (F (" WS event data." ));
29+ DEBUG_PRINTLN (F (" WS event data." ));
3030 // data packet
3131 AwsFrameInfo * info = (AwsFrameInfo*)arg;
3232 if (info->final && info->index == 0 && info->len == len){
@@ -91,7 +91,7 @@ void wsEvent(AsyncWebSocket * server, AsyncWebSocketClient * client, AwsEventTyp
9191 }
9292 } else if (type == WS_EVT_ERROR){
9393 // error was received from the other end
94- DEBUG_PRINTLN (F (" WS error." ));
94+ USER_PRINTLN (F (" WS error." ));
9595
9696 } else if (type == WS_EVT_PONG){
9797 // pong message was received (in response to a ping request maybe)
@@ -102,7 +102,7 @@ void wsEvent(AsyncWebSocket * server, AsyncWebSocketClient * client, AwsEventTyp
102102
103103void sendDataWs (AsyncWebSocketClient * client)
104104{
105- USER_PRINTF (" sendDataWs\n " );
105+ DEBUG_PRINTF (" sendDataWs\n " );
106106 if (!ws.count ()) return ;
107107 AsyncWebSocketMessageBuffer * buffer;
108108
@@ -147,7 +147,7 @@ void sendDataWs(AsyncWebSocketClient * client)
147147 #endif
148148 if (!buffer || heap1-heap2<len) {
149149 releaseJSONBufferLock ();
150- DEBUG_PRINTLN (F (" WS buffer allocation failed." ));
150+ USER_PRINTLN (F (" WS buffer allocation failed." ));
151151 ws.closeAll (1013 ); // code 1013 = temporary overload, try again later
152152 ws.cleanupClients (0 ); // disconnect all clients to release memory
153153 ws._cleanBuffers ();
@@ -212,7 +212,7 @@ static bool sendLiveLedsWs(uint32_t wsClient) // WLEDMM added "static"
212212 if (wsBuf == nullptr ) { // 8266 does not support exceptions
213213#endif
214214 wsBuf = nullptr ;
215- DEBUG_PRINTLN (F (" WS buffer allocation failed." ));
215+ USER_PRINTLN (F (" WS buffer allocation failed." ));
216216 // ws.closeAll(1013); //code 1013 = temporary overload, try again later
217217 // ws.cleanupClients(0); //disconnect all clients to release memory
218218 ws._cleanBuffers ();
0 commit comments