rabryan/pytuyo

python tostring function

Closed this issue · 1 comments

Hi, i found your code for the communication with Mitutoyo.
Thanks for sharing. It is very useful for my project.

Just had one issue
Python has no .tostring function

i replaced it with:

b_reading = (reading.tobytes()).decode()
value = b_reading[3:]

output:

+00002.34

fixed