1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-19 23:22:16 +03:00

document side-effects for wifi-off-at-boot (#8614)

* adding wifi-off-at-boot side-effects mention in documentation
This commit is contained in:
david gauchard 2022-06-25 23:18:54 +02:00 committed by GitHub
parent 5d4ae86565
commit 5656035bed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 enable radio as usual. It also smooths current spikes at boot and decreases
DHCP stress. 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 Legacy behavior can be restored by calling ``enableWiFiAtBootTime()`` from
anywhere in the code (it is a weak void function intended to play with the anywhere in the code (it is a weak void function intended to play with the
linker). linker).