Error while compiling any MySensor sketch
-
Hi everyone,
I have just installed the MySensor library:
- copied the whole content of the library folder in my arduino lib folder
- restarted the IDE (1.0.5-r2)
I tried compiling several MySensors exemples directly from the example menu and always get the same error:
M:\PRJ - Domotics\arduino\libraries\MySensors\Relay.cpp: In member function 'void Relay::begin(uint8_t, rf24_pa_dbm_e, uint8_t, rf24_datarate_e)':
M:\PRJ - Domotics\arduino\libraries\MySensors\Relay.cpp:23: error: 'EEPROM' was not declared in this scope
M:\PRJ - Domotics\arduino\libraries\MySensors\Relay.cpp: In member function 'void Relay::addChildRoute(uint8_t, uint8_t)':
M:\PRJ - Domotics\arduino\libraries\MySensors\Relay.cpp:220: error: 'EEPROM' was not declared in this scope
M:\PRJ - Domotics\arduino\libraries\MySensors\Relay.cpp: In member function 'void Relay::removeChildRoute(uint8_t)':
M:\PRJ - Domotics\arduino\libraries\MySensors\Relay.cpp:227: error: 'EEPROM' was not declared in this scopeI'm able to compile other sketches on that environment.
I didn't find that error on the forum, so I wondered if I had another Relay.h in my environment, which could conflict with yours, but it's not the case.
Any idea?
Thanks in advance for your help.
Totony.
-
Looks like there are old 1.3 files in the MySensors folder. Did you really replace it and not just overwrite?
Restart IDE after installing libraries.
-
Thanks for the quick answer!
I thought it was my first install of the lib, but I might have put it in my lib folder when I found out about MySensors.
So I just extracted there and replaced conflict. I'll remove the MySensor folder and extract again.
-
Fixed, thanks!!!!
Suggested Topics
-
Sample Door SW does not compile !
Troubleshooting • 4 Jan 2015, 16:38 • IOS_IOT 5 Jan 2015, 21:38 -
Day 1 - Status report
Announcements • 23 Mar 2014, 22:45 • hek 24 Mar 2014, 20:12 -
Echo request is not set
Troubleshooting • 12 Aug 2024, 15:36 • kamilb85 3 Sept 2024, 08:58 -
DHT22 wrong sensor type in Home Assistant
Troubleshooting • 15 days ago • Commodoreuno 10 days ago -
Ghost Child
Troubleshooting • 15 Mar 2025, 07:44 • FcNanoLed 18 Mar 2025, 18:36 -
Forum Search not working?
Troubleshooting • 4 Oct 2023, 23:33 • Gibber 2 Sept 2024, 20:28