EUCDevice

data class EUCDevice(val bluetoothDevice: BluetoothDevice? = null, val name: String, val address: String, val manufacturerId: Int, val manufacturerData: ByteArray? = null, val rssi: Int, val timestamp: Long = System.currentTimeMillis())(source)

Represents an Electric Unicycle device discovered during BLE scanning.

Contains device identification and connection information used for establishing BLE connections and selecting appropriate protocols.

Parameters

bluetoothDevice

The Android BluetoothDevice object, null if created from scan metadata

name

The device name (advertised BLE name)

address

The MAC address of the device

manufacturerId

The manufacturer identifier from BLE advertising data

manufacturerData

The manufacturer-specific data from BLE advertising, null if not available

rssi

The received signal strength indicator (dBm)

timestamp

The timestamp when the device was discovered (milliseconds)

Constructors

Link copied to clipboard
constructor(bluetoothDevice: BluetoothDevice? = null, name: String, address: String, manufacturerId: Int, manufacturerData: ByteArray? = null, rssi: Int, timestamp: Long = System.currentTimeMillis())

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val rssi: Int
Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard