rpiMain.dev.bluefalcon.BluetoothCharacteristic.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of blue-falcon-rpi Show documentation
Show all versions of blue-falcon-rpi Show documentation
Bluetooth Multiplatform Library
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