Reference.SoftwareSerialOverflow History

Hide minor edits - Show changes to output

May 25, 2012, at 03:47 PM by Tom Igoe -
Changed lines 24-26 from:
// software serial : TX = digital pin 2, RX = digital pin 3
SoftwareSerial portOne(2, 3);
to:
// software serial : TX = digital pin 10, RX = digital pin 11
SoftwareSerial portOne(10,11);
February 19, 2012, at 01:17 AM by David A. Mellis -
Changed lines 5-6 from:
Tests to see if a software serial buffer overflow has occurred. A software serial buffer can hold 64 bytes.
to:
Tests to see if a software serial buffer overflow has occurred. Calling this function clears the overflow flag, meaning that subsequent calls will return false unless another byte of data has been received and discarded in the meantime.

The software serial buffer can hold 64 bytes.
September 24, 2011, at 12:16 AM by Tom Igoe -
Deleted line 14:
Added lines 17-40:
!!!!Example

(:source lang=arduino tabwidth=4:)
#include <SoftwareSerial.h>

// software serial : TX = digital pin 2, RX = digital pin 3
SoftwareSerial portOne(2, 3);

void setup()
{
// Start the hardware serial port
Serial.begin(9600);

// Start software serial port
portOne.begin(9600);
}

void loop()
{
if (portOne.overflow()) {
Serial.println("SoftwareSerial overflow!");
}
(:sourceend:)
September 24, 2011, at 12:13 AM by Scott Fitzgerald -
Changed lines 5-6 from:
Tests to see if a software serial buffer overflow has occurred.
to:
Tests to see if a software serial buffer overflow has occurred. A software serial buffer can hold 64 bytes.
September 24, 2011, at 12:11 AM by Scott Fitzgerald -
Changed lines 5-6 from:
Tests to see if the software serial buffer overflow has occurred.
to:
Tests to see if a software serial buffer overflow has occurred.
September 24, 2011, at 12:10 AM by Scott Fitzgerald -
Added lines 1-23:
!!SoftwareSerial: overflow()

!!!!Description

Tests to see if the software serial buffer overflow has occurred.

!!!!Syntax
mySerial.overflow()

!!!!Parameters

none

!!!!Returns

boolean

!!!!See also

* [[SoftwareSerialConstructor | SoftwareSerial]]()
* [[SoftwareSerialRead | read]]()
* [[SoftwareSerialPrint | print]]()
* [[SoftwareSerialPrintln | println]]()

Share