Error using IRsend

Everything related to protocols and IR codes
Post Reply
robertomastrang
Posts: 1
Joined: Wed Oct 10, 2018 7:32 pm

Error using IRsend

Post by robertomastrang »

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.
User avatar
AnalysIR
Site Admin
Posts: 776
Joined: Sat Aug 31, 2013 3:51 pm
Location: Dublin, Ireland
Contact:

Re: Error using IRsend

Post by AnalysIR »

It seems like the types have changed in this fork of IRremote. (or it could be the ESP compiler)

so change

unsigned int Signal_0_0[] = {3308,

to

uint16_t Signal_0_0[] = {3308,
Post Reply