astm-serial icon indicating copy to clipboard operation
astm-serial copied to clipboard

problem with usage of get_data() method

Open veeranjaneyulu311 opened this issue 5 years ago • 0 comments

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)

veeranjaneyulu311 avatar Oct 09 '19 13:10 veeranjaneyulu311