zunoGetWakeReason()

Returns the reason of Z-Uno wakeup. zunoGetWakeReason() byte value from the list of ZUNO_WAKEUP_REASON_* enum (see ZUNO_Definitions.h) 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;
}
void setup() {
  byte wakeUpReason = zunoGetWakeReason();
  switch (wakeUpReason) {
    case ZUNO_WAKEUP_REASON_POR:
      // Power-On-Reset (low battery)
      break;
    case ZUNO_WAKEUP_REASON_PIN:
      // RST button pressed
      break;
    case ZUNO_WAKEUP_REASON_EXT_EM4:
      // Wakeup on external interrupt from EM4 mode
      break;
    case ZUNO_WAKEUP_REASON_EXT_EM2:
      // Wakeup on external interrupt from EM2 mode
      break;
    case ZUNO_WAKEUP_REASON_WUT_EM4:
      // Wake up by timer from  EM4 mode (for sleeping devices, defined by the controller)
      break;
    case ZUNO_WAKEUP_REASON_WUT_EM2:
      // Wake up by timer from  EM2 mode (for sleeping devices, defined by the controller)
      break;
    case ZUNO_WAKEUP_REASON_RADIO_EM2:
      // FLiRS received a packet
      break;
    case ZUNO_WAKEUP_REASON_WATCH_DOG:
      // Rebooted by watchdog. Seems user code hangs...
      break;
    case ZUNO_WAKEUP_REASON_SOFTRESET:
      // Rebooted by zunoReboot() function or from bootloader during device exclusion/NVM reset
      break;
}
ZUNO_SETUP_SLEEPING_MODE()
zunoSetBeamCountWU()
zunoSetWUOptions()
zunoSetCustomWUPTimer()
zunoEM4EnablePinWakeup()
attachInterrupt()