1.5.3.4.7 SRV_USER_PIB_SetRequest Function
C
void SRV_USER_PIB_SetRequest(uint16_t pibAttrib, void *pibValue, uint8_t pibSize);
Summary
Set a user PIB.
Description
This routine is used to set a user PIB.
Precondition
The SRV_USER_PIB_Initialize Function and SRV_USER_PIB_SetRequestCbRegister Function must have been called before.
Parameters
| Parameters | Description |
|---|---|
| pibAttrib | PIB attribute identifier |
| pibValue | PIB attribute value |
| pibSize | PIB attribute value size |
Returns
None.
Example
static void APP_SetRequestHandler(uint8_t setResult) { if (getResult == true) { ... } } int main(void) { int32_t resetValue = 0; SRV_USER_PIB_Initialize(); SRV_USER_PIB_SetRequestCbRegister(APP_SetRequestHandler); SRV_USER_PIB_SetRequest(PIB_USER_RESET_INFO, &resetValue, sizeof(resetValue)); }
Remarks
The result of setting the user PIB is returned in a callback function.
