Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python serial readline

import serial
serial = serial.Serial ("/dev/ttyAMA0", 115200)		# Port and Baud rate
line = serial.readline()	# Blocks until EOL is received
print(line)
 
PREVIOUS NEXT
Tagged: #python #serial #readline
ADD COMMENT
Topic
Name
1+2 =