Raspberry Pi - Serial UART Communication
What will be the output of this code snippet?
Assuming no data is sent to the port.
import serial
ser = serial.Serial('/dev/ttyS0', baudrate=9600, timeout=0.5)
data = ser.read(10)
print(len(data))Assuming no data is sent to the port.
