Support config("pm")
Currently I can set the power management value for wlan (network cyw43) with the config function. But I can't query the current value. It would be useful to be able to do this for debugging.
applies to network cyw43 wifi
Requires a change to the driver https://github.com/georgerobotics/cyw43-driver/pull/8
I will push a change.
Added txpower to WLAN config
I needed to configure tx power so I added a 'txpower' parameter to WLAN.config method for setting and getting max access point transmitter power. I tested it and the changes are effective immediately after entering the command. The WiFi signal strength on my phone dropped from excellent to poor after setting it from maximum to minimum. Minimum is -19 for -10.5 dBm and maximum is 76 for 19 dBm.
Minimal working example:
import network as net
ap = net.WLAN(net.AP_IF)
ap.active(True)
ap.config(txpower=76)
print(ap.config('txpower') * 0.25, 'dBm') # 19.0 dBm