SwitchMote:312:error:'CheckForWirelessHEX' was not declared in thisscope[SOLVED]

Started by jcsingle21, October 05, 2014, 03:41:08 AM

jcsingle21

I am receiving the following error when I go to compile the switchmote.ino sketch.

SwitchMote.ino: In function 'void loop()':
SwitchMote:312: error: 'CheckForWirelessHEX' was not declared in this scope

The program highlights the line - CheckForWirelessHEX(radio, flash, true, LED_RM);


Any thoughts on where the fault would be? 

Felix

You're probably missing the WirelessHEX69 library.
If you look a little at the code you're trying to compile, the top part has a lot of comments which would be recommended to go over at least 1 time to familiarize with what's going on. One of those lines is this:

#include <WirelessHEX69.h> //get it here: https://github.com/LowPowerLab/WirelessProgramming


You will need to install that library the same way you installed the RFM69 lib, in the Arduino/hardware folder.

jcsingle21

Come to find out I had the folder structure all wrong.  I just placed the unzip folder in the library folder and not do the WirelessHEX and WirelessHEX69 folders.  So in the end, they were one folder too deep.  Thanks again Felix, your kits are very enjoyable to test and make.  Loving the new found hobby.