C API for BALTECH SDK

§ brp_BlePeriph_SetCharacteristic()

brp_errcode brp_BlePeriph_SetCharacteristic ( brp_protocol  protocol,
unsigned  CharacteristicNdx,
brp_buf  NewValue,
size_t  NewValue_len 
)

This command changes the value of a characteristic.

All future reads from the Central or brp_BlePeriph_GetCharacteristic() from the BRP host will return the new value. If the Central has registered a notification/indication for this characteristic, the reader will automaticially send a corresponding message to the Central.

Parameters
[in]protocolused to execute the command
[in]CharacteristicNdxThe index of the characteristic to modify in the Characteristics array passed to brp_BlePeriph_DefineService().
[in]NewValue
[in]NewValue_len