C API for BALTECH SDK

§ brp_BlePeriph_GetCharacteristic()

brp_errcode brp_BlePeriph_GetCharacteristic ( brp_protocol  protocol,
unsigned  CharacteristicNdx,
brp_buf CurrentValue,
size_t *  CurrentValue_len,
brp_mempool mempool 
)

This command retrieves the current value of a characteristic.

A characteristic will be initialized to 00 00 ... 00 when calling brp_BlePeriph_Enable() and will be modified by either the BRP host ( brp_BlePeriph_SetCharacteristic()) or the BLE Central (via a write to the characteristic).

Parameters
[in]protocolused to execute the command
[in]CharacteristicNdxThe index of the characteristic to be retrieved in the Characteristics array passed to brp_BlePeriph_DefineService()
[out]CurrentValue
[out]CurrentValue_len
[in]mempoolis used to store response data. Maybe NULL to use an internal mempool, in this case the data is only available until another command uses the internal mempool