Reference.SoftwareSerialIsListening History

Hide minor edits - Show changes to output

May 25, 2012, at 03:46 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);
September 24, 2011, at 12:20 AM by Scott Fitzgerald -
Added lines 18-43:

!!!!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.isListening()) {
Serial.println("Port One is listening!");
}
(:sourceend:)

September 24, 2011, at 12:15 AM by Scott Fitzgerald - Page Created
Added lines 1-23:
!!SoftwareSerial: isListening()

!!!!Description

Tests to see if requested software serial port is actively listening.

!!!!Syntax
mySerial.isListening()

!!!!Parameters

none

!!!!Returns

boolean

!!!!See also

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

Share