Package-level declarations

Types

Link copied to clipboard
class AdvertisementTelemetryEntry(val deviceId: UInt, val rssi: Int, val advertisingPacket: ByteArray)

One BLE advertisement sample for structured bridge telemetry (see plane.proto).

Link copied to clipboard
class BLEProxy(messageStreamManager: IOSMessageStreamManager?, val blueLink: BlueLink, networkConnectivityMonitor: NetworkConnectivityMonitor, persistenceManager: PersistenceManager, iOSTrueTimeManager: ITrueTimeManager?) : ConnectivityListener
Link copied to clipboard
Link copied to clipboard
sealed class InstallOOBResult

Result of deliverInstallOOBAndWaitForMode. Success: device entered install/DFU mode; device is the peripheral to use for DFU if needed. Timeout: did not see install/DFU mode within the timeout. Failure: OOB delivery or other error.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
interface OOBWrapper
Link copied to clipboard
class ProxyDevice(var peripheral: BluetoothDevice, var deviceId: UInt, var proxyTaskQueue: TaskQueue = TaskQueue(), var internalCache: BridgeCache = BridgeCache(), val taskExecutor: DeviceTaskExecutor = DeviceTaskExecutor(), var batteryStatusLow: Boolean = false, cachedDevicePayloadChunks: MutableList<ByteArray> = mutableListOf(), var lastSuccessfulOOBTimestamp: Long? = null, var lastDiscoveryTime: Instant? = null, var isBlacklisted: Boolean = false, var inInstallMode: Boolean = false, var inDFUMode: Boolean = false, var lastHeartbeatSentTime: Long? = null, var lastHeartbeatAdvData: ByteArray? = null, var lastRssi: Int? = null)

Represents a BLE Device and its associated properties and operations.

Link copied to clipboard
Link copied to clipboard
class ProxyProvider(messageStreamManager: IOSMessageStreamManager? = null, heartbeatParser: IHeartbeatParser? = null, iOSTrueTimeManager: ITrueTimeManager? = null) : KoinComponent
Link copied to clipboard
@Serializable
data class ServerResponse(val stateUpdates: MutableList<ServerResponseStateUpdate>)

Represents the full server response.

Link copied to clipboard
@Serializable
data class ServerResponseStateUpdate(val psc: Int, val payload: ByteArray, var dsc: Int? = null, var isAck: Boolean)

Represents an update within the server response.

Link copied to clipboard
class StreamInactiveForPushException(message: String = "Plane stream is not connected") : Exception

Raised when encrypted device payloads or heartbeats must not be sent because the plane stream is not connected.

Properties

Link copied to clipboard
val proxyModule: Module

Functions

Link copied to clipboard
actual fun provideMessageStreamManager(persistenceManager: PersistenceManager, messageStreamManager: IOSMessageStreamManager?, oobStateFlow: MutableSharedFlow<OOBWrapper?>, proxyUpdateFlow: MutableSharedFlow<UInt>): MessageStreamManager
actual fun provideMessageStreamManager(persistenceManager: PersistenceManager, messageStreamManager: IOSMessageStreamManager?, oobStateFlow: MutableSharedFlow<OOBWrapper?>, proxyUpdateFlow: MutableSharedFlow<UInt>): MessageStreamManager
expect fun provideMessageStreamManager(persistenceManager: PersistenceManager, messageStreamManager: IOSMessageStreamManager?, oobStateFlow: MutableSharedFlow<OOBWrapper?>, proxyUpdateFlow: MutableSharedFlow<UInt>): MessageStreamManager