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 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 BlePeriph.DefineService.
[in]NewValue
[in]NewValue_len