You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
			
				
					20 lines
				
				406 B
			
		
		
			
		
	
	
					20 lines
				
				406 B
			| 
											6 years ago
										 | #!/usr/bin/env python
 | ||
|  | from panda import Panda
 | ||
|  | 
 | ||
|  | def get_panda_password():
 | ||
| 
											6 years ago
										 | 
 | ||
| 
											6 years ago
										 |   try:
 | ||
|  |     print("Trying to connect to Panda over USB...")
 | ||
|  |     p = Panda()
 | ||
| 
											6 years ago
										 | 
 | ||
| 
											6 years ago
										 |   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])
 | ||
| 
											6 years ago
										 | 
 | ||
| 
											6 years ago
										 | if __name__ == "__main__":
 | ||
|  |   get_panda_password()
 |