Package-level declarations

Types

Link copied to clipboard
data class BleDevice(val deviceInfo: BluetoothDevice?, val deviceName: String?, val deviceAddress: String?, val rssi: Int?, val scanRecord: ByteArray?, val serviceUuids: List<ParcelUuid>? = null) : Parcelable

Bluetooth Low Energy (BLE) device. This class holds various properties related to a discovered BLE device, including its basic information (name, address), signal strength (RSSI), scan record, and service UUIDs. The class also implements Parcelable, making it possible to pass BleDevice instances between Android components (e.g., via Intents).

Link copied to clipboard
data class ErrorResult(val code: Int?, val error_code: Int?, val message: String?)

This class holds the error code, an additional error-specific code, and an error message to provide detailed information about what went wrong during the operation. It is typically used to communicate error responses between different components or to report errors from network calls or Bluetooth operations.

Link copied to clipboard
data class SensorParams(val rssi: Int?, val rssiStatus: Int?, val pitch: Double?, val pitchMax: Double?, val pitchMin: Double?, val roll: Double?, val rollMax: Double?, val rollMin: Double?)

SensorParams is a data class that represents sensor parameters for a Bluetooth device. This class holds various sensor-related metrics such as signal strength (RSSI), pitch, and roll values, along with their corresponding maximum and minimum limits. These parameters are commonly used to monitor and adjust the orientation and positioning of a device equipped with sensors.

Link copied to clipboard
data class SensorUpdateInfoParams(val isUpgradeFailed: Boolean, val currentFirmware: String, val failedUpgradeVersion: String, val errorCode: Int)

Data class representing the parameters related to the sensor update information.

Link copied to clipboard
data class State(val status: Int?, val error: ErrorResult?, var upgrade_status: UpgradeStatusInfo? = null)

This may provide additional information if the device is in an error state.

Link copied to clipboard
data class UpgradeStatusInfo(val phase: Int?, val totalBytes: Int?, val currentBytes: Int?)

Represents the status information during an upgrade process.

Link copied to clipboard
data class WiFiParams(var ssid: String?, var bssid: String?, var rssi: String?, var auth: Int?)

WiFiParams is a data class that represents the parameters of a Wi-Fi network discovered by a Bluetooth device, such as its SSID, BSSID, signal strength (RSSI), and authentication type.