Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem with usage of get_data() method #3

Open
veeranjaneyulu311 opened this issue Oct 9, 2019 · 0 comments
Open

problem with usage of get_data() method #3

veeranjaneyulu311 opened this issue Oct 9, 2019 · 0 comments

Comments

@veeranjaneyulu311
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant