All Downloads are FREE. Search and download functionalities are using the official Maven repository.

macosX64Main.dev.bluefalcon.BluetoothPeripheral.kt Maven / Gradle / Ivy

There is a newer version: 2.2.1
Show newest version
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