I can not use both frequency
nimaltd opened this issue · comments
Nima Askari (نیما عسکری) commented
How can I use both 315/433 frequency at the same time on 2 different pins.
RCSwitch rf433 = RCSwitch();
RCSwitch rf315 = RCSwitch();
.
.
.
void setup()
{
rf315.enableReceive(6);
rf433.enableReceive(7);
}
it does not work if I enabled both of them
pierzogad commented
Short answer is NO.
RCSwitch implementation doesn't allow you to create 2 instances of code. There is just single (shared) variable for receiving buffer, return code and few others.
Mahdi Vahed commented
how to share when configuration enablereceived pin in setup ?!