Enhance setmaxtxpower description

This commit is contained in:
Marcel Stör 2017-11-19 20:21:29 +01:00
parent 4af68d8360
commit a037e842b3
1 changed files with 6 additions and 1 deletions

View File

@ -213,7 +213,9 @@ physical mode after setup
## wifi.setmaxtxpower()
Sets WiFi maximum tx power. This setting is not persisted across power cycles, and the documentation does not specify if the setting persists after deep sleep. The default value used is read from flash at boot time as part of the esp8266 init data, and its value is set by the Espressif SDK.
Sets WiFi maximum TX power. This setting is not persisted across power cycles, and the Espressif SDK documentation does not specify if the setting persists after deep sleep. The default value used is read from byte 34 of the ESP8266 init data, and its value is hence defined by the manufacturer.
The default value, 82, corresponds to maximum TX power. Lowering this setting could reduce power consumption on battery backed devices.
#### Syntax
`wifi.setmaxtxpower(max_tpw)`
@ -224,6 +226,9 @@ Sets WiFi maximum tx power. This setting is not persisted across power cycles,
#### Returns
`nil`
### See also
[`flash SDK init data`](../flash.md#sdk-init-data)
## wifi.startsmart()