mirror of
https://github.com/infiniteCable2/panda.git
synced 2026-02-19 09:43:51 +08:00
* fix W391 * E262 * E703 * W293 * some E * E231 * some more E * E225 * more E * E252 * no tabs * more tabs * E701 * uds.py * almost all of them * only e265 left * not sure why this is triggering on commented out code * ignore esptool
21 lines
374 B
Python
21 lines
374 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("SSID: " + wifi[0])
|
|
print("Password: " + wifi[1])
|
|
|
|
if __name__ == "__main__":
|
|
get_panda_password()
|