Skip to content

Commit b933e3d

Browse files
authored
WiFi off a boot: document a linker error when user wants to use wifi without including ESP8266WiFi.h (#7990)
1 parent ae359cc commit b933e3d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/esp8266wifi/generic-class.rst

+2
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ linker).
6161

6262
.. code:: cpp
6363
64+
#include <ESP8266WiFi.h> // necessary to avoid a linker error
65+
6466
void setup () {
6567
#ifdef WIFI_IS_OFF_AT_BOOT
6668
enableWiFiAtBootTime(); // can be called from anywhere with the same effect

0 commit comments

Comments
 (0)