mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-05 13:32:05 +08:00
b0b7a768f0
git-subtree-dir: panda git-subtree-split: 3b35621671aaa6de3fc66d85d30e4208a77e2489
22 lines
419 B
Python
22 lines
419 B
Python
#!/usr/bin/env python3
|
|
import sys
|
|
from panda import Panda
|
|
|
|
def get_panda_password():
|
|
|
|
try:
|
|
print("Trying to connect to Panda over USB...")
|
|
p = Panda()
|
|
|
|
except AssertionError:
|
|
print("USB connection failed")
|
|
sys.exit(0)
|
|
|
|
wifi = p.get_serial()
|
|
#print('[%s]' % ', '.join(map(str, wifi)))
|
|
print("SSID: " + wifi[0])
|
|
print("Password: " + wifi[1])
|
|
|
|
if __name__ == "__main__":
|
|
get_panda_password()
|