Fix admonitions in WiFi docs
This commit is contained in:
parent
61f4e18301
commit
9dfedaf55c
|
@ -153,8 +153,8 @@ physical mode after setup
|
||||||
|
|
||||||
Configures whether or not WiFi automatically goes to sleep in NULL_MODE. Enabled by default.
|
Configures whether or not WiFi automatically goes to sleep in NULL_MODE. Enabled by default.
|
||||||
|
|
||||||
!!! note
|
!!! note
|
||||||
This function **does not** store it's setting in flash, if auto sleep in NULL_MODE is not desired, `wifi.nullmodesleep(false)` must be called after powerup, restart, or wake from deep sleep.
|
This function **does not** store it's setting in flash, if auto sleep in NULL_MODE is not desired, `wifi.nullmodesleep(false)` must be called after power-up, restart, or wake from deep sleep.
|
||||||
|
|
||||||
#### Syntax
|
#### Syntax
|
||||||
`wifi.nullmodesleep([enable])`
|
`wifi.nullmodesleep([enable])`
|
||||||
|
@ -357,9 +357,8 @@ none
|
||||||
|
|
||||||
Disconnects from AP in station mode.
|
Disconnects from AP in station mode.
|
||||||
|
|
||||||
!!! note
|
!!! note
|
||||||
Please note that disconnecting from Access Point does not reduce power consumption.
|
Please note that disconnecting from Access Point does not reduce power consumption. If power saving is your goal, please refer to the description for `wifi.NULLMODE` in the function [`wifi.setmode()`](#wifisetmode) for more details.
|
||||||
If power saving is your goal, please refer to the description for `wifi.NULLMODE` in the function [`wifi.setmode()`](#wifisetmode) for more details.
|
|
||||||
|
|
||||||
#### Syntax
|
#### Syntax
|
||||||
`wifi.sta.disconnect()`
|
`wifi.sta.disconnect()`
|
||||||
|
@ -946,8 +945,8 @@ print(wifi.sta.setmac("DE:AD:BE:EF:7A:C0"))
|
||||||
|
|
||||||
Configures the WiFi modem sleep type to be used while station is connected to an Access Point.
|
Configures the WiFi modem sleep type to be used while station is connected to an Access Point.
|
||||||
|
|
||||||
!!! note
|
!!! note
|
||||||
Does not apply to `wifi.SOFTAP`, `wifi.STATIONAP` or `wifi.NULLMODE`.
|
Does not apply to `wifi.SOFTAP`, `wifi.STATIONAP` or `wifi.NULLMODE`.
|
||||||
|
|
||||||
#### Syntax
|
#### Syntax
|
||||||
`wifi.sta.sleeptype(type_wanted)`
|
`wifi.sta.sleeptype(type_wanted)`
|
||||||
|
|
Loading…
Reference in New Issue