Code: Select all
'irReceiver' was not declared in this scope
if (irReceiver != 0) break;
I need the dev10 version
Please help
It is working now.Also use the _P035_IRTX.ino and _P016_IR.ino plugins, then it will work.
Thanks
Moderators: grovkillen, Stuntteam, TD-er
Code: Select all
'irReceiver' was not declared in this scope
if (irReceiver != 0) break;
It is working now.Also use the _P035_IRTX.ino and _P016_IR.ino plugins, then it will work.
Is your first controller "OpenHAB MQTT" ???oisisi wrote: ↑13 Jun 2017, 17:57Code: Select all
375247309 : MQTT : Topic: home/esp014/cmd 375247309 : MQTT : Payload: RC,ON=1000010000,5
That's the problem!
Thanks for tenaciously investigating the cause. Since I use plain MQTT / Node RED and not really a specific controller I can find a workaround.
Code: Select all
/*
Example for receiving
http://code.google.com/p/rc-switch/
If you want to visualize a telegram copy the raw data and
paste it into http://test.sui.li/oszi/
*/
#include <RCSwitch.h>
RCSwitch mySwitch = RCSwitch();
void setup() {
Serial.begin(9600);
mySwitch.enableReceive(0); // Receiver on inerrupt 0 => that is pin #2
}
void loop() {
if (mySwitch.available()) {
output(mySwitch.getReceivedValue(), mySwitch.getReceivedBitlength(), mySwitch.getReceivedDelay(), mySwitch.getReceivedRawdata(),mySwitch.getReceivedProtocol());
mySwitch.resetAvailable();
}
}
Old thread, but... Apply this patch to the head of _P111 enables it to compile:sebi2003 wrote: ↑11 Aug 2017, 19:24 But when I add _P111_RF.ino i get the following error message:
exit status 1
'irReceiver' was not declared in this scope
I also considered the suggestion "Also use the _P035_IRTX.ino and _P016_IR.ino plugins, then it will work." mentioned in the post of kniazio.
Any Idea
Code: Select all
#ifndef USES_P016
int irReceiver = 0; // make sure it has value even if plugin not found
#endif
Users browsing this forum: Bing [Bot], Google [Bot] and 15 guests