rpiMain.dev.bluefalcon.BluetoothService.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.BluetoothGattService
actual class BluetoothService(val service: BluetoothGattService) {
actual val name: String?
get() = service.uuid.toString()
actual val characteristics: List
get() = service.characteristics.map {
BluetoothCharacteristic(it)
}
}