reduce txpower in hopes of better wlan performance
This commit is contained in:
parent
9ede139009
commit
dfbd58f60e
1 changed files with 1 additions and 0 deletions
1
main.py
1
main.py
|
|
@ -212,6 +212,7 @@ def network_connect(cmd):
|
|||
debug("connecting to ssid " + str(cmd['wlan_ssid']) + " password: " + str(cmd['wlan_password']))
|
||||
import network
|
||||
wlan = network.WLAN(network.WLAN.IF_STA)
|
||||
wlan.config(txpower=3)
|
||||
wlan.active(True)
|
||||
if not wlan.isconnected():
|
||||
wlan.connect(cmd['wlan_ssid'], cmd['wlan_password'])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue