Report Bugs Here

Moderator: Mmiscool

User avatar
By Electroguard
#63021 Yes, you can read numeric data into an integer variable instead of reading it as ascii characters into a string variable (which I believe is being forced by using $).

If you read the docs you'll see that serial can also be read byte by byte if you wish.
User avatar
By Lagnus
#63062 Sorry, but in which documentation have you read this?
Do you mean : Serial.read.int()
It seems that this is not working on serial2.
User avatar
By Lagnus
#63065 I wired it to serialport 1.
With Serial.read.int() it works and also no problem with zero's.
Thank you Electroguard