readDataFromCharacteristic

open fun readDataFromCharacteristic(strDeviceAddress: String, strServiceUuid: String, strCharacteristicUuid: String, nMaxReadSize: Int): Array<Byte>

Read the data from a certain characteristic. This method queues a read request, so it's safe to call it several times. Execution type: synchronous

Return

byte array containing the characteristic data

Parameters

strDeviceAddress

Device address of ble device

strServiceUuid

Service Uuid of service containing the characteristic

strCharacteristicUuid

Characteristic Uuid for characteristic, which shall be used for reading

nMaxReadSize

Maximum number of bytes, which shall be read