BALTECH SDK wrapper functions reference

§ brp_BlePeriph_WriteCharacteristic()

brp_errcode brp_BlePeriph_WriteCharacteristic ( brp_BlePeriph_WriteCharacteristic_t  params)

This command changes the value of a characteristic.

All future reads from the Central or brp_BlePeriph_ReadCharacteristic() from the BRP host will return the new value.

If the Central has registered a notification/indication for this characteristic, the reader will automatically send a corresponding message to the Central.

A characteristic can only be written when BLE is brp_BlePeriph_Enable() .

Parameters
[in]paramsStruct with the following fields:
  • protocol used to execute the command
  • CharacteristicNdx (in) The index of the characteristic to modify in the Characteristics array passed to brp_BlePeriph_DefineService(), starting with 0
  • WriteValue (in)
  • WriteValue_len (in) Length of WriteValue (in bytes).