1.5.4.18 AL_DataIndicationCallbackRegister Function
C
AL_RESULT AL_DataIndicationCallbackRegister (
AL_DATA_IND_CALLBACK callback
);
Summary
Allows a client to set a Meters And More AL Data.indication event handling function for the module to call back when a frame has been received.
Description
This function allows a client to register a Meters And More AL Data.indication event handling function for the module to call back when a Meters And More AL data indication event occurs.
Parameters
| Param | Description |
|---|---|
|
callback |
Pointer to the callback function. See AL_DATA_IND_CALLBACK Typedef |
Returns
Result of Callback setting.
Example
void APP_Rx_Ind_callback(AL_DATA_IND_PARAMS *indParams)
{
if (indParams->apduLen > 0){
/* Process Data */
}
}
AL_DataIndicationCallbackRegister(APP_Rx_Ind_callback);
Remarks
Callback can be set to a NULL pointer to stop receiving notifications.
