rcswitch not availble

azz-zza
Posts: 45
Joined: Tue Sep 17, 2019 2:58 am

rcswitch not availble

Postby azz-zza » 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

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

azz-zza
Posts: 45
Joined: Tue Sep 17, 2019 2:58 am

Re: rcswitch not availble

Postby azz-zza » Sat Oct 19, 2019 5:01 pm

it is hard to get not 433 mhz receiver to communicate with 433 transmitters :D .
Issue is closed.

Who is online

Users browsing this forum: Bing [Bot] and 76 guests