Skip to content

Commit

Permalink
document side-effects for wifi-off-at-boot (#8614)
Browse files Browse the repository at this point in the history
* adding wifi-off-at-boot side-effects mention in documentation
  • Loading branch information
d-a-v committed Jun 25, 2022
1 parent 5d4ae86 commit 5656035
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doc/esp8266wifi/generic-class.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ This change is harmless with standard sketches: Calls to ``WiFi.mode()`` do
enable radio as usual. It also smooths current spikes at boot and decreases
DHCP stress.

Known side-effects:

- ``WiFi.mode()`` must be called before changing mac addresses with ``wifi_set_macaddr({SOFTAP,STATION}_IF, ...)``.

Legacy behavior can be restored by calling ``enableWiFiAtBootTime()`` from
anywhere in the code (it is a weak void function intended to play with the
linker).
Expand Down

0 comments on commit 5656035

Please sign in to comment.