Skip to main content
added 1 character in body
Source Link
Mikael Patel
  • 8k
  • 2
  • 15
  • 21

The Arduino build preprocessing cannot locate the sensor source and header files if they are located in another sketch directory. The files needs to be moved to anotherseparate directory if shared (as a library).

--Sketchbook
---NodeIntercom
----NodeIntercom.ino
---MasterNode
----MasterNode.ino
---libraries
----Sensor
-----Sensor.h
-----Sensor.cpp

The Sensor header is included with

#include <Sensor.h>

in the sketches that needs to use it.

The Arduino build preprocessing cannot locate the sensor source and header files if they are located in another sketch directory. The files needs to be moved to another directory if shared (as a library).

--Sketchbook
---NodeIntercom
----NodeIntercom.ino
---MasterNode
----MasterNode.ino
---libraries
----Sensor
-----Sensor.h
-----Sensor.cpp

The Sensor header is included with

#include <Sensor.h>

in the sketches that needs to use it.

The Arduino build preprocessing cannot locate the sensor source and header files if they are located in another sketch directory. The files needs to be moved to separate directory if shared (as a library).

--Sketchbook
---NodeIntercom
----NodeIntercom.ino
---MasterNode
----MasterNode.ino
---libraries
----Sensor
-----Sensor.h
-----Sensor.cpp

The Sensor header is included with

#include <Sensor.h>

in the sketches that needs to use it.

added 17 characters in body
Source Link
Mikael Patel
  • 8k
  • 2
  • 15
  • 21

The Arduino build preprocessing cannot locate the sensor source and header when it isfiles if they are located in another sketch directory. The codefiles needs to be restructuredmoved to another directory if shared (as a library).

--Sketchbook
---NodeIntercom
----NodeIntercom.ino
---MasterNode
----MasterNode.ino
---libraries
----Sensor
-----Sensor.h
-----Sensor.cpp

The Sensor header is included with

#include <Sensor.h>

in the sketches that needneeds to use it.

The Arduino build preprocessing cannot locate sensor source and header when it is located in another directory. The code needs to be restructured.

--Sketchbook
---NodeIntercom
----NodeIntercom.ino
---MasterNode
----MasterNode.ino
---libraries
----Sensor
-----Sensor.h
-----Sensor.cpp

The Sensor header is included with

#include <Sensor.h>

in the sketches that need to use it.

The Arduino build preprocessing cannot locate the sensor source and header files if they are located in another sketch directory. The files needs to be moved to another directory if shared (as a library).

--Sketchbook
---NodeIntercom
----NodeIntercom.ino
---MasterNode
----MasterNode.ino
---libraries
----Sensor
-----Sensor.h
-----Sensor.cpp

The Sensor header is included with

#include <Sensor.h>

in the sketches that needs to use it.

Source Link
Mikael Patel
  • 8k
  • 2
  • 15
  • 21

The Arduino build preprocessing cannot locate sensor source and header when it is located in another directory. The code needs to be restructured.

--Sketchbook
---NodeIntercom
----NodeIntercom.ino
---MasterNode
----MasterNode.ino
---libraries
----Sensor
-----Sensor.h
-----Sensor.cpp

The Sensor header is included with

#include <Sensor.h>

in the sketches that need to use it.