LowPowerLab Forum

Hardware support => General topics => Topic started by: jcsingle21 on October 05, 2014, 03:41:08 AM

Title: SwitchMote:312:error:'CheckForWirelessHEX' was not declared in thisscope[SOLVED]
Post by: jcsingle21 on October 05, 2014, 03:41:08 AM
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? 
Title: Re: SwitchMote:312: error: 'CheckForWirelessHEX' was not declared in this scope
Post by: Felix on October 05, 2014, 10:39:41 PM
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.
Title: Re: SwitchMote:312: error: 'CheckForWirelessHEX' was not declared in this scope
Post by: jcsingle21 on October 06, 2014, 06:18:26 PM
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.