macosX64Main.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 blue-falcon Show documentation
Show all versions of blue-falcon Show documentation
Bluetooth Multiplatform Library
package dev.bluefalcon
import platform.CoreBluetooth.CBPeripheral
import platform.CoreBluetooth.CBService
actual class BluetoothPeripheral(val bluetoothDevice: CBPeripheral, val rssiValue: Float?) {
actual val name: String? = bluetoothDevice.name
actual var rssi: Float? = rssiValue
actual val services: List
get() = bluetoothDevice.services?.map {
BluetoothService(it as CBService)
} ?: emptyList()
actual val uuid: String
get() = bluetoothDevice.identifier.UUIDString
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy