androidMain.dev.bluefalcon.BluetoothPeripheral.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.BluetoothDevice
actual class BluetoothPeripheral(val bluetoothDevice: BluetoothDevice) {
actual val name: String?
get() = bluetoothDevice.name ?: bluetoothDevice.address
actual val services: List
get() = deviceServices
actual val uuid: String
get() = bluetoothDevice.address
actual var rssi: Float? = null
var deviceServices: List = listOf()
}