From 12d14325aa2ef56ff85da43c9667d90e660f75fb Mon Sep 17 00:00:00 2001 From: david gauchard Date: Fri, 16 Apr 2021 12:41:23 +0200 Subject: [PATCH] WiFi off a boot: document a linker error when user wants to use wifi without including ESP8266WiFi.h --- 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 bf6228d4e1..58e1fba3c7 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