-
-
Save gOmp/ca6a2a734ab5a3b521fe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import serial | |
ser = serial.Serial("/dev/ttyAMA0", baudrate=19200, timeout=2.0) | |
ser.write('AT\r') | |
print ("AT Command was Sent.\n waiting for OK\n") | |
print ser.read(100) #if everything went as expected it should return OK | |
ser.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment