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

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

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

import com.welie.blessed.BluetoothGattCharacteristic
import com.welie.blessed.BluetoothGattDescriptor

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

    internal var mutableVal: ByteArray? = null
}

actual typealias BluetoothCharacteristicDescriptor = BluetoothGattDescriptor




© 2015 - 2024 Weber Informatics LLC | Privacy Policy