You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The example that is loaded with the library does not compile. The example is IRrecvDumpV3.ino
To Reproduce
Click verify or compile. Note I did not make any changes to your example code, and I tried with and without my esp32 connected.
Example code used
Your example IRrecvDumpV3.ino
Expected behaviour
When I could not get it to compile, I uninstalled the Arduino ide 1.8.19 and deleted all the libraries I could find. Then reinstalled IDE 1.8.19 and your library but still the example would not compile, so I uninstalled everything again and installed the latest Arduino IDE 2.3.3 and installed the latest version of your library with the examples.
Output of raw data from [IRrecvDumpV2.ino]
d:\Users\Brian\Documents\Arduino\Projects\libraries\IRremoteESP8266\src\IRrecv.cpp: In function 'void gpio_intr()':
d:\Users\Brian\Documents\Arduino\Projects\libraries\IRremoteESP8266\src\IRrecv.cpp:246:3: error: 'timerAlarmEnable' was not declared in this scope; did you mean 'timerAlarm'?
246 | timerAlarmEnable(timer);
| ^~~~~~~~~~~~~~~~
| timerAlarm
d:\Users\Brian\Documents\Arduino\Projects\libraries\IRremoteESP8266\src\IRrecv.cpp: In member function 'void IRrecv::enableIRIn(bool)':
d:\Users\Brian\Documents\Arduino\Projects\libraries\IRremoteESP8266\src\IRrecv.cpp:362:21: error: too many arguments to function 'hw_timer_t* timerBegin(uint32_t)'
362 | timer = timerBegin(_timer_num, 80, true);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
In file included from C:\Users\Brian\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.5\cores\esp32/esp32-hal.h:84,
from C:\Users\Brian\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.5\cores\esp32/Arduino.h:36,
from d:\Users\Brian\Documents\Arduino\Projects\libraries\IRremoteESP8266\src\IRrecv.h:10,
from d:\Users\Brian\Documents\Arduino\Projects\libraries\IRremoteESP8266\src\IRrecv.cpp:6:
C:\Users\Brian\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.5\cores\esp32/esp32-hal-timer.h:35:13: note: declared here
35 | hw_timer_t timerBegin(uint32_t frequency);
| ^~~~~~~~~~
d:\Users\Brian\Documents\Arduino\Projects\libraries\IRremoteESP8266\src\IRrecv.cpp:371:3: error: 'timerAlarmWrite' was not declared in this scope; did you mean 'timerWrite'?
371 | timerAlarmWrite(timer, MS_TO_USEC(params.timeout), ONCE);
| ^~~~~~~~~~~~~~~
| timerWrite
d:\Users\Brian\Documents\Arduino\Projects\libraries\IRremoteESP8266\src\IRrecv.cpp:375:23: error: too many arguments to function 'void timerAttachInterrupt(hw_timer_t, void (*)())'
375 | timerAttachInterrupt(timer, &read_timeout, false);
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\Brian\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.5\cores\esp32/esp32-hal-timer.h:50:6: note: declared here
50 | void timerAttachInterrupt(hw_timer_t *timer, void (*userFunc)(void));
| ^~~~~~~~~~~~~~~~~~~~
d:\Users\Brian\Documents\Arduino\Projects\libraries\IRremoteESP8266\src\IRrecv.cpp: In member function 'void IRrecv::disableIRIn()':
d:\Users\Brian\Documents\Arduino\Projects\libraries\IRremoteESP8266\src\IRrecv.cpp:401:3: error: 'timerAlarmDisable' was not declared in this scope
401 | timerAlarmDisable(timer);
| ^~~~~~~~~~~~~~~~~
d:\Users\Brian\Documents\Arduino\Projects\libraries\IRremoteESP8266\src\IRrecv.cpp: In member function 'void IRrecv::resume()':
d:\Users\Brian\Documents\Arduino\Projects\libraries\IRremoteESP8266\src\IRrecv.cpp:429:3: error: 'timerAlarmDisable' was not declared in this scope
429 | timerAlarmDisable(timer);
| ^~~~~~~~~~~~~~~~~
Version/revision of the library used
The latest 2.8.6
Describe the bug
The example that is loaded with the library does not compile. The example is IRrecvDumpV3.ino
To Reproduce
Click verify or compile. Note I did not make any changes to your example code, and I tried with and without my esp32 connected.
Example code used
Your example IRrecvDumpV3.ino
Expected behaviour
When I could not get it to compile, I uninstalled the Arduino ide 1.8.19 and deleted all the libraries I could find. Then reinstalled IDE 1.8.19 and your library but still the example would not compile, so I uninstalled everything again and installed the latest Arduino IDE 2.3.3 and installed the latest version of your library with the examples.
Output of raw data from [IRrecvDumpV2.ino]
d:\Users\Brian\Documents\Arduino\Projects\libraries\IRremoteESP8266\src\IRrecv.cpp: In function 'void gpio_intr()':
d:\Users\Brian\Documents\Arduino\Projects\libraries\IRremoteESP8266\src\IRrecv.cpp:246:3: error: 'timerAlarmEnable' was not declared in this scope; did you mean 'timerAlarm'?
246 | timerAlarmEnable(timer);
| ^~~~~~~~~~~~~~~~
| timerAlarm
d:\Users\Brian\Documents\Arduino\Projects\libraries\IRremoteESP8266\src\IRrecv.cpp: In member function 'void IRrecv::enableIRIn(bool)':
d:\Users\Brian\Documents\Arduino\Projects\libraries\IRremoteESP8266\src\IRrecv.cpp:362:21: error: too many arguments to function 'hw_timer_t* timerBegin(uint32_t)'
362 | timer = timerBegin(_timer_num, 80, true);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
In file included from C:\Users\Brian\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.5\cores\esp32/esp32-hal.h:84,
from C:\Users\Brian\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.5\cores\esp32/Arduino.h:36,
from d:\Users\Brian\Documents\Arduino\Projects\libraries\IRremoteESP8266\src\IRrecv.h:10,
from d:\Users\Brian\Documents\Arduino\Projects\libraries\IRremoteESP8266\src\IRrecv.cpp:6:
C:\Users\Brian\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.5\cores\esp32/esp32-hal-timer.h:35:13: note: declared here
35 | hw_timer_t timerBegin(uint32_t frequency);
| ^~~~~~~~~~
d:\Users\Brian\Documents\Arduino\Projects\libraries\IRremoteESP8266\src\IRrecv.cpp:371:3: error: 'timerAlarmWrite' was not declared in this scope; did you mean 'timerWrite'?
371 | timerAlarmWrite(timer, MS_TO_USEC(params.timeout), ONCE);
| ^~~~~~~~~~~~~~~
| timerWrite
d:\Users\Brian\Documents\Arduino\Projects\libraries\IRremoteESP8266\src\IRrecv.cpp:375:23: error: too many arguments to function 'void timerAttachInterrupt(hw_timer_t, void (*)())'
375 | timerAttachInterrupt(timer, &read_timeout, false);
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\Brian\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.5\cores\esp32/esp32-hal-timer.h:50:6: note: declared here
50 | void timerAttachInterrupt(hw_timer_t *timer, void (*userFunc)(void));
| ^~~~~~~~~~~~~~~~~~~~
d:\Users\Brian\Documents\Arduino\Projects\libraries\IRremoteESP8266\src\IRrecv.cpp: In member function 'void IRrecv::disableIRIn()':
d:\Users\Brian\Documents\Arduino\Projects\libraries\IRremoteESP8266\src\IRrecv.cpp:401:3: error: 'timerAlarmDisable' was not declared in this scope
401 | timerAlarmDisable(timer);
| ^~~~~~~~~~~~~~~~~
d:\Users\Brian\Documents\Arduino\Projects\libraries\IRremoteESP8266\src\IRrecv.cpp: In member function 'void IRrecv::resume()':
d:\Users\Brian\Documents\Arduino\Projects\libraries\IRremoteESP8266\src\IRrecv.cpp:429:3: error: 'timerAlarmDisable' was not declared in this scope
429 | timerAlarmDisable(timer);
| ^~~~~~~~~~~~~~~~~
exit status 1
Compilation error: exit status 1
(https://github.com/crankyoldgit/IRremoteESP8266/blob/master/examples/IRrecvDumpV2/IRrecvDumpV2.ino) or V3 (if applicable)
Include some serial text of the raw dumps of what the device saw.
Note: Output from Tasmota is not acceptable. We can't easily use their raw format.
What brand/model IR demodulator are you using?
Not relevant as the code will not compile.
Circuit diagram and hardware used (if applicable)
Link to an image of the circuit diagram used. Part number of the IR receiver module etc. ESP8266 or ESP32 board type.
I have followed the steps in the Troubleshooting Guide & read the FAQ
Yes/No.
Has this library/code previously worked as expected for you?
Yes/No. If "Yes", which version last worked for you?
Yes, but it was a year or so ago and I did not make a note of the library version.
Other useful information
More information is always welcome. Be verbose.
The text was updated successfully, but these errors were encountered: