Both SensorSwitch and BaseStation directories are project roots. Is it possible for the sketches in those directories to include the SensorConfig.h file in the Common directory? I know that I could just copy that header file to each project and include it, but that doesn’t strike me as being very DRY.
If you are building locally in Workbench, you can use build.mk to add the Common directory as an additional include path for the C++ compiler, at least in theory. It’s a little tricky to get working.
If you are building locally you can also use paths of the form:
#include "../Common/SensorConfig.h"
If you are building locally or in the cloud at least on Linux and Mac you can symlink (ln -s) the SensorConfig.h from the common directory into the src directory of SensorSwitch and BaseStation. In addition to working for both local and cloud, if you commit the symlink to Github, it does the right thing on clone (recreates the symlink instead of duplicating the file).