zunoGetWakeReason()

Returns the reason of Z-Uno wakeup. zunoGetWakeReason() byte value from the list of ZUNO_WAKEUP_REASON_* enum (see ZUNO_Definitions.h)
void setup() {
  byte wakeUpReason = zunoGetWakeReason();
  switch (wakeUpReason) {
    case ZUNO_WAKEUP_REASON_POR:
      // Power-On-Reset (low battery)
      break;
    case ZUNO_WAKEUP_REASON_HARDRESET:
      // RST button pressed
      break;
    case ZUNO_WAKEUP_REASON_INT1:
      // Wakeup on INT1 state change or Key Scanner
      break;
    case ZUNO_WAKEUP_REASON_WUT:
      // Wake up by timer (for sleeping devices, defined by the controller)
      break;
    case ZUNO_WAKEUP_REASON_RADIO:
      // FLiRS received a packet
      break;
    case ZUNO_WAKEUP_REASON_SOFTRESET:
      // Rebooted by watchdog (for future use)
      break;
    case ZUNO_WAKEUP_REASON_USBSUSPEND:
      // Rebooted by USB suspend event (for future use)
      break;
}
ZUNO_SETUP_SLEEPING_MODE()
zunoSetBeamCountWU()
zunoSetWUOptions()