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. MyGateway.h and MySensor.h can not be found

MyGateway.h and MySensor.h can not be found

Scheduled Pinned Locked Moved Troubleshooting
2 Posts 2 Posters 5.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.
  • B Offline
    B Offline
    Baran
    wrote on last edited by
    #1

    Greetings Again,

    Here I am with a new (well, different) computer onto which I downloaded the Arduino IDE. I then downloaded the Arduino-master zip folder and placed it in my sketchbook location. Upon compiling, I am told that the MyGateway.h and MySensor.h files cannot be found, even though they are residing one level above my program (I am trying to compile the Serial Gateway).

    When I look at the file hierarchy, it goes: documents/Arduino/Arduino-master (unzipped;), libraries/MySensors. The MySensors folder contains all the .h and .cpp files and the examples folder, within which resides the Serial Gateway program.

    I ran the debugger and received the following error list:

    Arduino: 1.0.6 (Windows 7), Board: "Arduino Uno"
    C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=106 -IC:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino -IC:\Program Files (x86)\Arduino\hardware\arduino\variants\standard -IC:\Program Files (x86)\Arduino\libraries\SPI C:\Users\FS113184\AppData\Local\Temp\build602465618798150284.tmp\SerialGateway.cpp -o C:\Users\FS113184\AppData\Local\Temp\build602465618798150284.tmp\SerialGateway.cpp.o
    SerialGateway.ino:25:24: warning: MySensor.h: No such file or directory
    SerialGateway.ino:26:25: warning: MyGateway.h: No such file or directory
    SerialGateway:33: error: 'MyGateway' does not name a type
    SerialGateway:35: error: 'MAX_RECEIVE_LENGTH' was not declared in this scope
    SerialGateway.ino: In function 'void setup()':
    SerialGateway:41: error: 'gw' was not declared in this scope
    SerialGateway.ino: In function 'void loop()':
    SerialGateway:46: error: 'gw' was not declared in this scope
    SerialGateway:50: error: 'inputString' was not declared in this scope
    SerialGateway.ino: In function 'void serialEvent()':
    SerialGateway:69: error: 'MAX_RECEIVE_LENGTH' was not declared in this scope
    SerialGateway:71: error: 'inputString' was not declared in this scope
    SerialGateway:75: error: 'inputString' was not declared in this scope

    The interesting thing is that I CAN compile and load the program (Serial Gateway) through the online application but it does not compile when I attempt to do so my hand. Is there a way to provide screen shots through this forum? If not, will some kind soul who has been through this issue please provide a link so I can share my file layout? Respectfully - Baran

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

      You should only copy the "libraries" folder from inside the zip to your sketchbook location. And restart IDE.

      In your case:
      documents/Arduino/libraries/MySensors

      You can drag-and-drop images directly to to the compose window.

      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


      12

      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