mirror of
https://github.com/Links2004/arduinoWebSockets.git
synced 2025-07-16 00:32:06 +02:00
add deprecated warning for loop in async mode
fix sync mode
This commit is contained in:
@ -42,7 +42,14 @@ public:
|
||||
~WebSocketsServer(void);
|
||||
|
||||
void begin(void);
|
||||
#if (WEBSOCKETS_NETWORK_TYPE != NETWORK_ESP8266_ASYNC)
|
||||
void loop(void);
|
||||
#else
|
||||
// Async interface not need a loop call
|
||||
void loop(void) __attribute__ ((deprecated)) {
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
void onEvent(WebSocketServerEvent cbEvent);
|
||||
|
||||
|
Reference in New Issue
Block a user