Komut
isListening
Açıklama
İstenen yazılım seri portunun aktif olarak dinleyip dinlemediğini test eder.
Sözdizimi
mySerial.isListening ()
Parametreler
Yok
İadeler
boole
Misal
#include <SoftwareSerial.h>
// software serial : TX = digital pin 10, RX = digital pin 11
SoftwareSerial portOne(10,11);
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!");
}
// software serial : TX = digital pin 10, RX = digital pin 11
SoftwareSerial portOne(10,11);
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!");
}
Ayrıca bakınız
- SoftwareSerial()
- read()
- print()
- println()