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 scope

    I'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.


  • Admin

    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!!!!


Log in to reply
 

Suggested Topics

0
Online

11.4k
Users

11.1k
Topics

112.7k
Posts