rcswitch not availble
Posted: Fri Oct 18, 2019 12:30 am
Hello,
is there a way to troubleshoot this to understand what exactly is not working ? i have a simple FS1000 modules and devkit esp32 module...
the output is always "Switch is not available"
thank you
is there a way to troubleshoot this to understand what exactly is not working ? i have a simple FS1000 modules and devkit esp32 module...
the output is always "Switch is not available"
thank you
Code: Select all
void setup() {
//enable serial monitor
int ISR_PIN = 8 ;
Serial.begin(9600);
delay(3000);
// Receiver on interrupt 0 => that is pin Digital #2 (Arduino UNO R3)
mySwitch.enableReceive(ISR_PIN);
}
void loop() {
if (mySwitch.available()) {
output(mySwitch.getReceivedValue(), mySwitch.getReceivedBitlength(), mySwitch.getReceivedDelay(), mySwitch.getReceivedRawdata(),mySwitch.getReceivedProtocol());
mySwitch.resetAvailable();
} else { Serial.printf("Switch is not available \n");
}