astm-serial
astm-serial copied to clipboard
problem with usage of get_data() method
The get_data() function giving result as"" \x02testing\r\x030E\r\n"" . how can i get this data in decoded format using astm-serial library i.e "testing".
below is the block of code i have used to read the data.
from astm_serial.client import AstmConn astm = AstmConn(port='COM3', baudrate=9600, timeout=10) astm.send_enq() print(astm)
while True: data = astm.get_data() print(data)