Object function reference

write

A reference entry for write

Object function · BluetoothDevice

write(string service, string characteristic, mixed data[, boolean with_response]) ⇒ boolean

Writes binary data to a characteristic. data may be a ByteStream or a list of byte values from 0 to 255. The optional with_response argument defaults to true; use false for a write without response.