Serial.ParseInt History

Hide minor edits - Show changes to output

June 05, 2013, at 06:46 PM by Scott Fitzgerald -
Added lines 9-10:
If no valid integer is found within one second (adjustable through [[SetTimeout|Serial.setTimeout]]() ) a default value of 0 will be returned.
Changed lines 27-34 from:
!!!Example

(:source lang=arduino:)

(:sourceend:)


to:


April 16, 2012, at 08:34 PM by Scott Fitzgerald -
Added lines 1-38:
[[Reference/Serial]]

!!parseInt()

!!!!Description

Looks for the next valid integer in the incoming serial stream. parseInt() inherits from the [[Reference/Stream]] utility class.

!!!!Syntax
Serial.parseInt()

''Arduino Mega only:'' \\
Serial1.parseInt() \\
Serial2.parseInt() \\
Serial3.parseInt()

!!!Parameters

none

!!!!Returns

int : the next valid integer

!!!Example

(:source lang=arduino:)

(:sourceend:)



!!!!See also
(:include Reference/SerialSeeAlsoIncludes:)\\

*[[/Reference/StreamParseInt | Stream.parseInt]]()

[[Reference.HomePage | Reference Home]]

Share