write

open fun write(strDeviceAddress: String, strServiceUuid: String, strCharacteristicUuid: String, buffer: Array<Byte>, bWriteWithResponse: Boolean)

Write custom data to a device. The data is internally queued, so you can directly write all your data. Execution type: asynchronous

Parameters

strDeviceAddress

Device address of ble device

strServiceUuid

Service Uuid of service containing the characteristic

strCharacteristicUuid

Characteristic Uuid of the characteristic, you want to write to

buffer

buffer with custom data

bWriteWithResponse

write with or without response