I am working on a BP sensor serial and am using serial readline()
to read the output provided by the port, when I initiate the port as serial.Serial('/dev/ttyUSB2',115200,timeout=1)
and print the date read using readline() in a loop as follows
for I in range(1,10)
print('integration')
print(ser.readline())
the readline()
seems to into infinite loop as the program prints integration once and then goes infinite however when I try the same with timeout=0
the program prints integration 9 times with blank space after each line. Need to know what I am doing wrong as the same code seems to work fine with other sensors like laser distance sensor
etc.
Already referred to Reference1 Reference2 and a few more.