Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Troubleshooting
  3. Error while compiling any MySensor sketch

Error while compiling any MySensor sketch

Scheduled Pinned Locked Moved Troubleshooting
compilation
4 Posts 2 Posters 2.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Totony
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • H Offline
      H Offline
      hek
      Admin
      wrote on last edited by hek
      #2

      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.

      1 Reply Last reply
      0
      • T Offline
        T Offline
        Totony
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        • T Offline
          T Offline
          Totony
          wrote on last edited by
          #4

          Fixed, thanks!!!!

          1 Reply Last reply
          0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          8

          Online

          12.0k

          Users

          11.2k

          Topics

          113.4k

          Posts


          Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • MySensors
          • OpenHardware.io
          • Categories
          • Recent
          • Tags
          • Popular