From a037e842b3494d94368d44229d6130b774d2585d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20St=C3=B6r?= Date: Sun, 19 Nov 2017 20:21:29 +0100 Subject: [PATCH] Enhance setmaxtxpower description --- docs/en/modules/wifi.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/en/modules/wifi.md b/docs/en/modules/wifi.md index 3ca92cca..43f5914b 100644 --- a/docs/en/modules/wifi.md +++ b/docs/en/modules/wifi.md @@ -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()