Serial.ParseInt History

Hide minor edits - Show changes to output

April 09, 2015, at 11:30 AM by Arturo -
Changed lines 35-40 from:
(:include Reference/SerialSeeAlsoIncludes:)\\


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

[[Reference.HomePage | Reference Home]]
to:
* [[(Reference.)Serial]]
* [[(Reference.)Stream]]
* [[/Reference/StreamParseInt | Stream.parseInt]]()
April 09, 2015, at 11:28 AM by Arturo -
Changed lines 37-38 from:
*[[/Reference/StreamParseFloat | Stream.parseFloat]]()
to:

*[[/Reference/StreamParseInt | Stream.parseInt]()
April 09, 2015, at 11:27 AM by Arturo -
Changed lines 37-38 from:
*[[/Reference/StreamParseInt | Stream.parseInt]]()
to:
*[[/Reference/StreamParseFloat | Stream.parseFloat]]()
April 03, 2015, at 02:28 PM by Arturo -
Changed lines 9-10 from:
If no valid integer is found within one second (adjustable through [[SetTimeout|Serial.setTimeout]]() ) a default value of 0 will be returned.
to:
In particular:
* Initial characters that are not digits or a minus sign, are skipped;
* Parsing stops when no characters have been read for a configurable time-out value, or a non-digit is read;
* If no valid digits were read when the time-out (see [[/Serial/SetTimeout | Serial.setTimeout]]()) occurs, 0 is returned;
Added lines 17-18:
Serial.parseInt(char skipChar)
Changed lines 24-27 from:
!!!Parameters

none
to:
!!!!Parameters
skipChar: used to skip the indicated char in the search. Used for example to skip thousands divider.
Changed lines 29-33 from:
int : the next valid integer



to:
long : the next valid integer



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