sendMessage
abstract suspend fun sendMessage( serviceConnectionId: ServiceConnectionId, serviceUuid: ServiceUuid, data: ByteArray): Boolean
Content copied to clipboard
Sends a message with the specified data to the connection with the specified serviceConnectionId for the service with the specified serviceUuid. Returns true
when the message is successfully send, false
when close was already called or there was no connection at the time.
Note: The serviceConnectionId should be retrieved from a call to the services ConnectivityClientServiceListener.onServiceConnected. If the connection was dropped in the mean time this method will return false
.