mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-27 18:02:17 +03:00
WiFi off a boot: document a linker error when user wants to use wifi without including ESP8266WiFi.h (#7990)
This commit is contained in:
@ -61,6 +61,8 @@ linker).
|
|||||||
|
|
||||||
.. code:: cpp
|
.. code:: cpp
|
||||||
|
|
||||||
|
#include <ESP8266WiFi.h> // necessary to avoid a linker error
|
||||||
|
|
||||||
void setup () {
|
void setup () {
|
||||||
#ifdef WIFI_IS_OFF_AT_BOOT
|
#ifdef WIFI_IS_OFF_AT_BOOT
|
||||||
enableWiFiAtBootTime(); // can be called from anywhere with the same effect
|
enableWiFiAtBootTime(); // can be called from anywhere with the same effect
|
||||||
|
Reference in New Issue
Block a user