Reference.SoftwareSerialRead History

Hide minor edits - Show changes to markup

May 25, 2012, at 03:49 PM by Tom Igoe -
Changed lines 1-2 from:

SoftwareSerial: int read()

to:

SoftwareSerial: read

Changed lines 18-19 from:

SoftwareSerial mySerial(6, 7);

to:

SoftwareSerial mySerial(10,11);

February 19, 2012, at 01:10 AM by David A. Mellis -
Changed lines 5-6 from:

Reads a character from the receive pin of the software serial port. This function waits for a character to arrive, reads it, and returns the character read. Data that arrives at other times is lost.

to:

Return a character that was received on the RX pin of the software serial port. Note that only one SoftwareSerial instance can receive incoming data at a time (select which one with the listen() function).

Changed lines 13-14 from:

the character read

to:

the character read, or -1 if none is available

January 07, 2012, at 06:34 PM by Tom Igoe -
Changed lines 18-19 from:

SoftwareSerial serial(6, 7);

to:

SoftwareSerial mySerial(6, 7);

Changed line 22 from:
  serial.begin(9600);
to:
  mySerial.begin(9600);
Changed line 27 from:
  char c = serial.read();
to:
  char c = mySerial.read();
January 07, 2012, at 06:33 PM by Tom Igoe -
Changed lines 16-17 from:

[@SoftwareSerial serial(6, 7);

to:
Changed lines 28-29 from:

} @]

to:
May 17, 2007, at 05:04 PM by David A. Mellis -
Changed lines 31-33 from:
to:
May 17, 2007, at 05:04 PM by David A. Mellis -
Changed lines 1-2 from:

int SoftwareSerial.read()

to:

SoftwareSerial: int read()

December 23, 2006, at 05:05 AM by David A. Mellis -
Changed lines 26-28 from:

} @]

to:

} @]

December 23, 2006, at 05:04 AM by David A. Mellis -
Added lines 1-34:

int SoftwareSerial.read()

Description

Reads a character from the receive pin of the software serial port. This function waits for a character to arrive, reads it, and returns the character read. Data that arrives at other times is lost.

Parameters

none

Returns

the character read

Example

SoftwareSerial serial(6, 7);

void setup()
{
  serial.begin(9600);
}

void loop()
{
  char c = serial.read();
}

See also

Share