1.5.4.20 AL_EventIndicationCallbackRegister Function

C

AL_RESULT AL_EventIndicationCallbackRegister (
        AL_EVENT_IND_CALLBACK callback
);

Summary

Allows a client to set a Meters And More AL Event.indication event handling function for the module to call back when AL generates a new event.

Description

This function allows a client to register a Meters And More AL Event.indication event handling function for the module to call back when a Meters And More AL event occurs.

Returns

Result of Callback setting.

Example

    void APP_Event_Ind_callback(AL_EVENT_IND_CALLBACK *indParams)
    {
        if (indParams->eventId == AL_EVENT_ID_MAC_ACA){
            /* Process Event */
        }
    }

    AL_EventIndicationCallbackRegister(APP_Event_Ind_callback);

Remarks

Callback can be set to a NULL pointer to stop receiving notifications.

This Callback is only generated in Master Node. There is no need to set a handling function on Slave Nodes.