ZUNO_SETUP_SYSEVENT_HANDLER()

Set up a handler for Z-Uno system events such as: inclusion start/stop, firmware update start, Z-Uno boot and go into sleep as well as system faults like stack overflow or blocked packets due to the policy to debug. ZUNO_SETUP_SYSEVENT_HANDLER(handler) handler function that handles events void sys_event(byte event, byte param) { ... } event event type from the list ZUNO_LOGGING_EVENT_* param additional parameter for the event
        ZUNO_SETUP_SYSEVENT_HANDLER(sys_event);

void sys_event(byte event, byte param) {
  switch(event) {
    case ZUNO_LOGGING_EVENT_LEARNSTART:
      // some action
      break;
    case ZUNO_LOGGING_EVENT_LEARNCOMPLETE:
      // some action
      break;
    case ZUNO_LOGGING_EVENT_FWAUTH:
      // some action
      break;
    case ZUNO_LOGGING_EVENT_STACKOVERFLOW:
      // OOOPS! Error handling
      break;
  } 
}
        
    
Full list of events is available in ZUNO_Definitions.h (search for ZUNO_LOGGING_EVENT_).