BlePeriph.ReadCharacteristic

This command retrieves the current value of a characteristic. A characteristic will be initialized to 00 00 ... 00 when calling BlePeriph.Enable and will be modified by either the BRP host ( BlePeriph.WriteCharacteristic ) or the BLE Central (via a write to the characteristic).

A characteristic can only be read when BLE is enabled.

Properties

Parameters (request frame)

Name Type/Size Description
CharacteristicNdx Integer (8 bits) The index of the characteristic to be read in the Characteristics array passed to BlePeriph.DefineService, starting with 0
ReadLength Integer (16 bits) Number of bytes to read from characteristic This value may exceed the actual characteristic size, but only the available data is returned in the response.

Returned values (response frame)

Name Type/Size Description
Length of ReadValue Integer (16 bits) Length of ReadValue in bytes
ReadValue Raw data -