Package-level declarations

Types

Link copied to clipboard

Authentication reported by the wheel, never inferred from a successful BLE write.

Link copied to clipboard
data class BMSData(val bmsIndex: Int, val voltage: Double?, val current: Double?, val remainingCapacity: Int?, val factoryCapacity: Int?, val cycles: Int?, val temperatures: List<Double>?, val cellVoltages: List<Double>?, val isCharging: Boolean? = null, val serialNumber: String? = null, val firmwareVersion: String? = null, val chargeCurrent: Double? = null, val dischargeCurrent: Double? = null)

Companion model for BMS (Battery Management System) summary data. Provides detailed battery health information beyond what EUCData carries.

Link copied to clipboard

Why a diagnostic-log download failed.

Link copied to clipboard

Lifecycle of a wheel diagnostic-log download.

Link copied to clipboard

Snapshot of a wheel diagnostic-log download. The library only transfers the opaque binary file; storing, sharing or decoding it belongs to the client application.

Link copied to clipboard
data class EUCData(val frameType: String = "BASE", val speed: Double, val voltage: Double, val current: Double, val temperature: Double, val batteryLevel: Int, val distance: Double, val power: Double, val pwm: Double? = null, val timestamp: Long, val rawData: ByteArray, val manufacturer: String, val model: String, val serialNumber: String? = null, val firmwareVersion: String? = null, val isCharging: Boolean, val rideTime: Long, val cellVoltages: List<Double>? = null, val motorTemperature: Double? = null, val totalDistance: Double? = null, val pedalsMode: Int? = null, val alarmMode: Int? = null, val rollAngleMode: Int? = null, val usesMiles: Boolean? = null, val autoPowerOffMinutes: Int? = null, val tiltBackSpeed: Int? = null, val ledMode: Int? = null, val lightMode: Int? = null, val alertFlags: Int? = null, val wheelAlarm: Boolean? = null, val topSpeed: Double? = null, val fanStatus: Int? = null, val chargingStatus: Int? = null, val mosfetTemperature: Double? = null, val boardTemperature: Double? = null, val imuTemperature: Double? = null, val tirePressureKpa: Double? = null, val cpuLoad: Int? = null, val speedLimit: Double? = null, val alarm1Speed: Int? = null, val alarm2Speed: Int? = null, val alarm3Speed: Int? = null, val wheelMaxSpeed: Int? = null, val wheelDistance: Double? = null, val angle: Double? = null, val phaseCurrent: Double? = null, val roll: Double? = null, val torque: Double? = null, val mode: String? = null, val totalRideTimeSeconds: Long? = null, val totalPowerOnTimeSeconds: Long? = null, val dynamicSpeedLimit: Double? = null, val rideModeOffroad: Boolean? = null, val pedalSensitivityPercent: Int? = null, val pedalMountingAngleTenths: Int? = null, val speakerVolumePercent: Int? = null, val speakerMuted: Boolean? = null, val avasEnabled: Boolean? = null, val daytimeRunningLight: Boolean? = null)

Represents real-time telemetry data from an Electric Unicycle.

Link copied to clipboard
data class EUCDevice(val name: String, val address: String, val manufacturerId: Int, val manufacturerData: ByteArray? = null, val rssi: Int, val timestamp: Long = 0)

Represents an Electric Unicycle device discovered during BLE scanning.

Link copied to clipboard
Link copied to clipboard

Lock status reported by the wheel, never inferred from a lock/unlock request.

Link copied to clipboard
sealed interface WheelSecurityEvent

A security notification or local password-operation timeout. Contains no PIN or raw bytes.

Link copied to clipboard
data class WheelSecurityState(val authentication: AuthenticationState = AuthenticationState.UNKNOWN, val lock: WheelLockState = WheelLockState.UNKNOWN)