Error using IRsend
Posted: Wed Oct 10, 2018 7:57 pm
I'm just starting to deal with IR.
I used AnalysIR+LearnIR to get two codes.
The first to turn ON/OFF my LG TV set, and it worked fine. Then I got a second to turn ON/OFF my Fujitsu AC.
I used the same arduino Sketch, running on a ESP8266-NODEMCU and using IRiemoteESP8266.h , IRsend.h and the code I batch exported from AnalysIR.
I just replaced this line:
irsend.sendNEC(0x20DF10EF, 32); //AnalysIR Batch Export (IRremote) // AnalysIR IR Protocol: NEC, Key:
By these:
unsigned int Signal_0_0[] = {3308,1612,430,382,430,382,442,1204,430,382,442,1204,430,382,430,382,430,382,442,1204,442,1204,430,382,430,382,430,382,442,1204,442,1204,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,442,1204,430,382,430,382,430,382,430,382,430,382,430,382,430,382,442,1204,430,382,430,382,430,382,430,382,442,1204,442,1204,442,1204,442,1204,442,1204,442,1204,442,1204,442,1204,430,382,430,382,442,1204,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,442,1204,442,1204,430,382,430,382,442,1204,430,382,430,382,430,382,430,382,442,1204,442,1204,430,382,442,1204,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,442,1204,430,382,430,382,430,382,442,1204,442,1204,442,1204,430,382,430,382,442,1204,430,382,430}; //AnalysIR Batch Export (IRremote) - RAW
irsend.sendRaw(Signal_0_0, sizeof(Signal_0_0)/sizeof(int), khz); //AnalysIR Batch Export (IRremote) - RAW
And got the following error message:
exit status 1
no matching function for call to 'IRsend::sendRaw(unsigned int [259], unsigned int, int&)'
What is wrong?
Thanks.
I used AnalysIR+LearnIR to get two codes.
The first to turn ON/OFF my LG TV set, and it worked fine. Then I got a second to turn ON/OFF my Fujitsu AC.
I used the same arduino Sketch, running on a ESP8266-NODEMCU and using IRiemoteESP8266.h , IRsend.h and the code I batch exported from AnalysIR.
I just replaced this line:
irsend.sendNEC(0x20DF10EF, 32); //AnalysIR Batch Export (IRremote) // AnalysIR IR Protocol: NEC, Key:
By these:
unsigned int Signal_0_0[] = {3308,1612,430,382,430,382,442,1204,430,382,442,1204,430,382,430,382,430,382,442,1204,442,1204,430,382,430,382,430,382,442,1204,442,1204,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,442,1204,430,382,430,382,430,382,430,382,430,382,430,382,430,382,442,1204,430,382,430,382,430,382,430,382,442,1204,442,1204,442,1204,442,1204,442,1204,442,1204,442,1204,442,1204,430,382,430,382,442,1204,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,442,1204,442,1204,430,382,430,382,442,1204,430,382,430,382,430,382,430,382,442,1204,442,1204,430,382,442,1204,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,430,382,442,1204,430,382,430,382,430,382,442,1204,442,1204,442,1204,430,382,430,382,442,1204,430,382,430}; //AnalysIR Batch Export (IRremote) - RAW
irsend.sendRaw(Signal_0_0, sizeof(Signal_0_0)/sizeof(int), khz); //AnalysIR Batch Export (IRremote) - RAW
And got the following error message:
exit status 1
no matching function for call to 'IRsend::sendRaw(unsigned int [259], unsigned int, int&)'
What is wrong?
Thanks.