parseInt()
Description
Looks for the next valid integer in the incoming serial stream. parseInt()
inherits from the Stream utility class.
If no valid integer is found within one second (adjustable through Serial.setTimeout()
) a default value of 0 will be returned.
Syntax
All boards:
Serial.parseInt()
Serial1.parseInt()
86Duino One specific:
Serial2.parseInt()
Serial3.parseInt()
Serial485.parseInt()
86Duino EduCake specific:
Serial2.parseInt()
Serial3.parseInt()
Serial232.parseInt()
Parameters
none
Returns
int : the next valid integer
See also
- Serial
- available()
- begin()
- end()
- find()
- findUntil()
- flush()
- parseFloat()
- peek()
- print()
- println()
- read()
- readBytes()
- readBytesUntil()
- setTimeout()
- write()
- serialEvent()
The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.