Serial.ParseInt History

Hide minor edits - Show changes to markup

April 09, 2015, at 11:30 AM by Arturo -
Changed lines 35-40 from:
to:
April 09, 2015, at 11:28 AM by Arturo -
Changed lines 37-38 from:
to:
  • [[/Reference/StreamParseInt | Stream.parseInt]()
April 09, 2015, at 11:27 AM by Arturo -
Changed lines 37-38 from:
to:
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 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()) 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 Serial.setTimeout() ) a default value of 0 will be returned.

Changed lines 27-34 from:
to:

April 16, 2012, at 08:34 PM by Scott Fitzgerald -
Added lines 1-38:

Share