Early in my project development I have found it useful to sometimes reset my remote node (outdoors) from the Gateway (indoors). So, I included a special command code among my other commands that can be sent in my Payload from Gateway to the node that sets and checks for 'reset_flag' == true and runs:
/// Use watchdog to reset
void resetUsingWatchdog(boolean reset_flag)
{
//wdt_disable();
if (reset_flag) Serial.print("REBOOTING");
wdt_enable(WDTO_15MS);
while(1) if (reset_flag) Serial.print('.');
}
I now want to include wireless programming and so have added to the node sketch under the (radio.receiveDone()) function
CheckForWirelessHEX(radio, flash, true);
However the compiler is giving me an error as there are now "multiple definition of `resetUsingWatchdog(unsigned char)'"
How can I best resolve this problem?
thanks
That means resetUsingWatchdog() is already defined. Either rename your function or use the one already defined in the WirelessHex69 library.