All Downloads are FREE. Search and download functionalities are using the official Maven repository.

androidMain.dev.bluefalcon.BluetoothCharacteristic.kt Maven / Gradle / Ivy

There is a newer version: 0.8.0
Show newest version
package dev.bluefalcon

import android.bluetooth.BluetoothGattCharacteristic
import android.bluetooth.BluetoothGattDescriptor
import java.nio.charset.Charset

actual class BluetoothCharacteristic(val characteristic: BluetoothGattCharacteristic) {
    actual val name: String?
        get() = characteristic.uuid.toString()
    actual val value: ByteArray?
        get() = characteristic.value
    actual val descriptors: List
        get() = characteristic.descriptors
}

actual typealias BluetoothCharacteristicDescriptor = BluetoothGattDescriptor




© 2015 - 2024 Weber Informatics LLC | Privacy Policy