Skip to content

Commit a037e84

Browse files
committed
Enhance setmaxtxpower description
1 parent 4af68d8 commit a037e84

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

docs/en/modules/wifi.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,9 @@ physical mode after setup
213213

214214
## wifi.setmaxtxpower()
215215

216-
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.
216+
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.
217+
218+
The default value, 82, corresponds to maximum TX power. Lowering this setting could reduce power consumption on battery backed devices.
217219

218220
#### Syntax
219221
`wifi.setmaxtxpower(max_tpw)`
@@ -224,6 +226,9 @@ Sets WiFi maximum tx power. This setting is not persisted across power cycles,
224226
#### Returns
225227
`nil`
226228

229+
### See also
230+
[`flash SDK init data`](../flash.md#sdk-init-data)
231+
227232

228233
## wifi.startsmart()
229234

0 commit comments

Comments
 (0)