bump version, add all wifi test

This commit is contained in:
Firmware Batman 2017-08-29 11:34:47 -07:00
parent c95fe9e287
commit 5b9485637e
2 changed files with 8 additions and 5 deletions

View File

@ -1 +1 @@
v0.9.6
v0.9.7

View File

@ -21,11 +21,14 @@ def connect_wo_esp():
def connect_wifi():
p = Panda()
ssid, pw = p.get_serial()
ssid = ssid.strip("\x00")
assert(ssid.isalnum())
dongle_id, pw = p.get_serial()
dongle_id = ssid.strip("\x00")
assert(dongle_id.isalnum())
assert(pw.isalnum())
ssid = str("panda-" + ssid)
_connect_wifi(dongle_id, pw)
def _connect_wifi(dongle_id, pw):
ssid = str("panda-" + dongle_id)
print("WIFI: connecting to %s" % ssid)