Skip to content

Commit fb26433

Browse files
committed
add error messages if Webserver Hook Functions are not supported by platform
1 parent 4f52a0f commit fb26433

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/WebSockets4WebServer.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,13 @@ class WebSockets4WebServer : public WebSocketsServerCore {
6565
};
6666
}
6767
};
68+
#else // WEBSOCKETS_NETWORK_TYPE == NETWORK_ESP8266 && WEBSERVER_HAS_HOOK
69+
70+
#ifndef WEBSERVER_HAS_HOOK
71+
#error Your current Framework / Arduino core version does not support Webserver Hook Functions
72+
#else
73+
#error Your Hardware Platform does not support Webserver Hook Functions
74+
#endif
6875

6976
#endif // WEBSOCKETS_NETWORK_TYPE == NETWORK_ESP8266 && WEBSERVER_HAS_HOOK
7077

0 commit comments

Comments
 (0)