Page 1 of 1

rcswitch not availble

Posted: Fri Oct 18, 2019 12:30 am
by azz-zza
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

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");
  }

Re: rcswitch not availble

Posted: Sat Oct 19, 2019 5:01 pm
by azz-zza
it is hard to get not 433 mhz receiver to communicate with 433 transmitters :D .
Issue is closed.