1.5.3.4.4 SRV_USER_PIB_GetRequestCbRegister Function
C
void SRV_USER_PIB_GetRequestCbRegister(SRV_USER_PIB_GET_REQUEST_CALLBACK callback);
Summary
Register a function to be called to get the requested user PIB.
Description
This routine allows a client to register an event handling function to be called when a requested user PIB is returned.
Precondition
The SRV_USER_PIB_Initialize Function must have been called before.
Parameters
| Parameters | Description |
|---|---|
| callback | Pointer to the callback function |
Returns
None.
Example
static void APP_GetRequestHandler(uint8_t getResult, uint16_t pibAttrib, void *pibValue, uint8_t pibSize) { if (getResult == true) { ... } } int main(void) { SRV_USER_PIB_Initialize(); SRV_USER_PIB_GetRequestCbRegister(APP_GetRequestHandler); }
Remarks
None.
