From b933e3d2834e816493911647e159d6eda439f0d7 Mon Sep 17 00:00:00 2001 From: david gauchard Date: Sun, 18 Apr 2021 09:15:42 +0200 Subject: [PATCH] WiFi off a boot: document a linker error when user wants to use wifi without including ESP8266WiFi.h (#7990) --- doc/esp8266wifi/generic-class.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/esp8266wifi/generic-class.rst b/doc/esp8266wifi/generic-class.rst index bf6228d4e..58e1fba3c 100644 --- a/doc/esp8266wifi/generic-class.rst +++ b/doc/esp8266wifi/generic-class.rst @@ -61,6 +61,8 @@ linker). .. code:: cpp + #include // necessary to avoid a linker error + void setup () { #ifdef WIFI_IS_OFF_AT_BOOT enableWiFiAtBootTime(); // can be called from anywhere with the same effect