diff --git a/src/WebSockets.h b/src/WebSockets.h index 989d9b9..4063b5f 100644 --- a/src/WebSockets.h +++ b/src/WebSockets.h @@ -33,7 +33,13 @@ #include #endif +#ifdef ARDUINO_ARCH_AVR +#error Version 2.x.x currently does not support Arduino with AVR since there is no support for std namespace of c++. +#error Use Version 1.x.x. (ATmega branch) +#else #include +#endif + #ifndef NODEBUG_WEBSOCKETS #ifdef DEBUG_ESP_PORT