I am trying to read data from the SFM10, using the simple hello world example,
It works in powershell but not using python
The following code works for an arduino
import serial
# Set a 5 second timeout
port = serial.Serial('COM6', 115200, bytesize=8, parity='N', stopbits=1, timeout=5)
try:
line = port.readline().decode('utf-8')
print(line)
except serial.SerialTimeoutException:
print("No data received within timeout period")
finally:
port.close()