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
str Device Address
Device address of ble device
str Service Uuid
Service Uuid of service containing the characteristic
str Characteristic Uuid
Characteristic Uuid of the characteristic, you want to write to
buffer
buffer with custom data
b Write With Response
write with or without response