1.5.3.4.5 SRV_USER_PIB_GetRequest Function
C
void SRV_USER_PIB_GetRequest(uint16_t pibAttrib);
Summary
Get a user PIB.
Description
This routine is used to get a user PIB.
Precondition
The SRV_USER_PIB_Initialize Function and SRV_USER_PIB_GetRequestCbRegister Function must have been called before.
Parameters
| Parameters | Description |
|---|---|
| pibAttrib | PIB attribute identifier |
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); SRV_USER_PIB_GetRequest(PIB_USER_RESET_INFO); }
Remarks
The requested user PIB is returned in a callback function.
