Skip to content

Commit

Permalink
Merge pull request #131 from appleguru/master
Browse files Browse the repository at this point in the history
Example to get wifi password from panda over USB using python library
  • Loading branch information
geohot authored Aug 7, 2018
2 parents 01c0383 + c0b1ef2 commit d7bd473
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions examples/get_panda_password.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env python
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()

0 comments on commit d7bd473

Please sign in to comment.