1.2.5.39 ADP_SetRequest Function

C

void ADP_SetRequest (
    uint32_t attributeId,
    uint16_t attributeIndex,
    uint8_t attributeLength,
    const uint8_t *pAttributeValue,
    ADP_SET_CFM_PARAMS* pSetConfirm
);

Summary

This primitive sets the value of an attribute in the ADP information base synchronously.

Description

The ADP Set Request primitive allows the upper layer to set the value of an attribute in the ADP information base synchronously. Result is provided directly in one of the function call parameters.

Parameters

ParamDescription
attributeIdThe identifier of the ADP IB attribute to read. See ADP_PIB_ATTRIBUTE
attributeIndexThe index within the table of the specified IB attribute to read
attributeLengthThe length of the value of the attribute to set
pAttributeValuePointer to the value of the attribute to set
pSetConfirmPointer to Set Confirm parameters containing result. See ADP_SET_CFM_PARAMS

Returns

None.

Example

uint8_t pAttributeValue[64];
ADP_SET_CFM_PARAMS setConfirm;

pAttributeValue[0] = 44;
ADP_SetRequestSync(ADP_IB_LOW_LQI_VALUE, 0, 1, pAttributeValue,
    &setConfirm);

// Check the result
if (setConfirm->status == G3_SUCCESS)
{

}

Remarks

None.