Thanks All,
I agree it is beneficial for the waspmotes to send binary data!
Kind off this topic but another function that i added was setting up the deepSleep function with integers like:
Quote:
PWR.deepSleep(0,0,0,10,RTC_OFFSET,RTC_ALM1_MODE5,ALL_OFF);
If you want to do variable sleep rates this makes it alot easier to work with in my opinion. This is what I added to the WaspPWR:
Quote:
void WaspPWR::deepSleep(uint8_t day_date, uint8_t _hour, uint8_t _minute, uint8_t _second, uint8_t offset, uint8_t mode, uint8_t option)
{
// Set RTC alarme to wake up from Sleep Power Down Mode
RTC.setAlarm1(day_date,_hour,_minute,_second,offset,mode);
RTC.close();
switchesOFF(option);
set_sleep_mode(SLEEP_MODE_PWR_DOWN);
sleep_enable();
sleep_mode();
sleep_disable();
switchesON(option);
RTC.ON();
RTC.clearAlarmFlag();
if( option & RTC_OFF ) RTC.OFF();
}
Anyways, just thought I would post this case anyone might think it could be useful.
duff