androidMain.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 library-android Show documentation
Show all versions of library-android Show documentation
Kotlin Multiplatform Bluetooth Library
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