add error messages if Webserver Hook Functions are not supported by platform

This commit is contained in:
Links
2020-11-21 14:33:25 +01:00
parent 4f52a0f38e
commit fb26433e75

View File

@ -65,6 +65,13 @@ class WebSockets4WebServer : public WebSocketsServerCore {
};
}
};
#else // WEBSOCKETS_NETWORK_TYPE == NETWORK_ESP8266 && WEBSERVER_HAS_HOOK
#ifndef WEBSERVER_HAS_HOOK
#error Your current Framework / Arduino core version does not support Webserver Hook Functions
#else
#error Your Hardware Platform does not support Webserver Hook Functions
#endif
#endif // WEBSOCKETS_NETWORK_TYPE == NETWORK_ESP8266 && WEBSERVER_HAS_HOOK