write

fun write(characteristic: String, message: ByteArray): Boolean

Performs a write operation on a specific characteristic

Return

True when successfully written the specified value

Parameters

characteristic

The uuid of the target characteristic

See also

For a variant that receives a String value


fun write(characteristic: String, message: String, charset: Charset = Charsets.UTF_8): Boolean

Performs a write operation on a specific characteristic

Return

True when successfully written the specified value

Parameters

characteristic

The uuid of the target characteristic

See also

For a variant that receives a ByteArray value