esp8266/modnetwork: Add ability to set tx power for WLAN interface.
This commit is contained in:
parent
fb0dd86b39
commit
e30e543a75
|
@ -410,6 +410,11 @@ STATIC mp_obj_t esp_config(size_t n_args, const mp_obj_t *args, mp_map_t *kwargs
|
|||
wifi_set_phy_mode(mp_obj_get_int(kwargs->table[i].value));
|
||||
break;
|
||||
}
|
||||
case MP_QSTR_txpower: {
|
||||
int8_t power = mp_obj_get_float(kwargs->table[i].value) * 4;
|
||||
system_phy_set_max_tpw(power);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
goto unknown;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue