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. Newb can't get a clean compile

Newb can't get a clean compile

Scheduled Pinned Locked Moved Troubleshooting
10 Posts 3 Posters 1.7k Views 3 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.
  • L Offline
    L Offline
    logbuilder
    wrote on last edited by
    #1

    New to Arduino. I'm trying to create a serial gateway. I have a genuine UNO with a 8266 WIFI. Hopefully wired correctly. I did it per the MySensors serial gateway video.

    I've downloaded Arduino IDE ver 1.8.2 and MySensors ver 2.1.1. I can compile the Arduino example blink and it loads and runs fine. When I try to compile GatewaySerial I get errors. I suspect I don't have things in the right place. Hopefully the errors below will be something that is just a common mistake.

    Any help is greatly appreciated.

    =================================================
    WARNING: Category '' in library UIPEthernet is not valid. Setting to 'Uncategorized'
    C:\Program Files (x86)\Arduino\MySensors archive\MySensors -2.1.1\MySensors-master\examples\GatewaySerial\GatewaySerial.ino:84:23: fatal error: MySensors.h: No such file or directory

    #include <MySensors.h>

                       ^
    

    compilation terminated.

    exit status 1
    Error compiling for board Arduino/Genuino Uno.

    1 Reply Last reply
    0
    • gohanG Offline
      gohanG Offline
      gohan
      Mod
      wrote on last edited by
      #2

      I think you are mixing things up : what are you trying to achieve? What are your components and project?

      1 Reply Last reply
      0
      • L Offline
        L Offline
        logbuilder
        wrote on last edited by
        #3

        Thanks for responding.

        I am trying to build a serial gateway to interface with HomeSeer. There will be several additional nodes that will have various sensors such as motion and temp/humidity.

        I used the serial controller project under the build tab.
        https://www.mysensors.org/build/serial_gateway

        I have used a UNO instead of a Nano. I am trying to compile the GatewaySerial project in the mysensors 2.1.1. example folder. No changes.

        When I compile, I get the errors as listed in the first post.

        gohanG 1 Reply Last reply
        0
        • L logbuilder

          Thanks for responding.

          I am trying to build a serial gateway to interface with HomeSeer. There will be several additional nodes that will have various sensors such as motion and temp/humidity.

          I used the serial controller project under the build tab.
          https://www.mysensors.org/build/serial_gateway

          I have used a UNO instead of a Nano. I am trying to compile the GatewaySerial project in the mysensors 2.1.1. example folder. No changes.

          When I compile, I get the errors as listed in the first post.

          gohanG Offline
          gohanG Offline
          gohan
          Mod
          wrote on last edited by
          #4

          @logbuilder probably you are missing some defines. How are you going to connect the sensors? In addition I'm not sure if you can use mysensors gateway with the esp8266 on a UNO

          1 Reply Last reply
          0
          • L Offline
            L Offline
            logbuilder
            wrote on last edited by
            #5

            In the examples that come with mysensors 2.1.1 there are a couple of 8266 gateways. I can get none of them to compile.

            Right now I am just trying to get a clean compile. The MySensors.h file is in the MySensors root directory.

            mfalkviddM 1 Reply Last reply
            0
            • L logbuilder

              In the examples that come with mysensors 2.1.1 there are a couple of 8266 gateways. I can get none of them to compile.

              Right now I am just trying to get a clean compile. The MySensors.h file is in the MySensors root directory.

              mfalkviddM Offline
              mfalkviddM Offline
              mfalkvidd
              Mod
              wrote on last edited by mfalkvidd
              #6

              @logbuilder welcome to the MySensors community.

              Based on the error in your first post, the Arduino IDE is unable to find the MySensors library.

              Install the MySensors library using the Library Manager. That will make sure all files end up in the right folders. Instructions are available at https://www.mysensors.org/about/arduino#installing-the-sensor-libraries

              Also note that the MySensor esp8266 examples are meant for a standalone esp8266. They do not work on an esp8266 shield. See https://forum.mysensors.org/topic/4374/arduino-uno-esp8266/ for an earlier discussion on this topic.

              1 Reply Last reply
              0
              • L Offline
                L Offline
                logbuilder
                wrote on last edited by
                #7

                Thanks for the input @mfalkvidd

                In mysensors 2.1.1, there is no library folder. Apparently all the libs were incorporated into the core starting with ver 2.0

                Not sure how to do the equivalent to what you say in 2.+.

                mfalkviddM 1 Reply Last reply
                0
                • L logbuilder

                  Thanks for the input @mfalkvidd

                  In mysensors 2.1.1, there is no library folder. Apparently all the libs were incorporated into the core starting with ver 2.0

                  Not sure how to do the equivalent to what you say in 2.+.

                  mfalkviddM Offline
                  mfalkviddM Offline
                  mfalkvidd
                  Mod
                  wrote on last edited by mfalkvidd
                  #8

                  @logbuilder yes and no.

                  The MySensors library should be installed from the library manager. The error you are getting is due to the MySensors library not being correctly. The instructions I linked to are for MySensors 2.+

                  Some third party libraries (not MySensors itself) was moved to a separate git repository when 2.0 was released. This does not affect the example sketches shipped within the MySensors library.

                  1 Reply Last reply
                  0
                  • L Offline
                    L Offline
                    logbuilder
                    wrote on last edited by
                    #9

                    @mfalkvidd

                    Well,you got me to thinking about this. I guess that loading of the libs is what used to get the .H files in the right place and telling the compiler that they exist. So I decided why not try it even though there is no lib folder. I took the whole mysensors 2.1.1 folder and told the library manager to add it. No errors. I then went into the library manager and it said 2.1.1 was in fact installed. Loaded up GatewaySerial and it compiled fine with board of UNO, Nano and nodeMCU.

                    Loaded it onto a nodeMCU and it is running. In the serial monitor I can see messages from the board. It is indicating some problem with initialization but that is another thread.

                    I really, really thank you for giving me some ideas.

                    Ultimately I'm trying to add some adruino sensor devices to my HomeSeer system. There is a mysensors plugin for HomeSeer. That is a multi step process but getting a cleanly compiled program to run on a wifi enabled device is a major step. Hopefully the nodeMCU will work out as well as it looks. Next step is to get the mysensors plugin installed in HomeSeer and get everybody to talk to each other.

                    mfalkviddM 1 Reply Last reply
                    1
                    • L logbuilder

                      @mfalkvidd

                      Well,you got me to thinking about this. I guess that loading of the libs is what used to get the .H files in the right place and telling the compiler that they exist. So I decided why not try it even though there is no lib folder. I took the whole mysensors 2.1.1 folder and told the library manager to add it. No errors. I then went into the library manager and it said 2.1.1 was in fact installed. Loaded up GatewaySerial and it compiled fine with board of UNO, Nano and nodeMCU.

                      Loaded it onto a nodeMCU and it is running. In the serial monitor I can see messages from the board. It is indicating some problem with initialization but that is another thread.

                      I really, really thank you for giving me some ideas.

                      Ultimately I'm trying to add some adruino sensor devices to my HomeSeer system. There is a mysensors plugin for HomeSeer. That is a multi step process but getting a cleanly compiled program to run on a wifi enabled device is a major step. Hopefully the nodeMCU will work out as well as it looks. Next step is to get the mysensors plugin installed in HomeSeer and get everybody to talk to each other.

                      mfalkviddM Offline
                      mfalkviddM Offline
                      mfalkvidd
                      Mod
                      wrote on last edited by
                      #10

                      @logbuilder great work. Thanks for reporting back.

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      18

                      Online

                      11.7k

                      Users

                      11.2k

                      Topics

                      113.1k

                      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