Raspberry Pi - Serial UART Communication
Identify the error in this Python code snippet reading GPS data:
import serial
ser = serial.Serial('/dev/serial0', 9600)
while True:
line = ser.readline().decode('utf-8')
print(line)
The program crashes with UnicodeDecodeError. What is the fix?
