refactor(transport): complete transport architecture overhaul — extract callback, wire BleReconnectPolicy, fix safety issues (#5080)

This commit is contained in:
James Rich 2026-04-11 23:22:18 -05:00 committed by GitHub
parent 962c619c4c
commit e85300531e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
64 changed files with 1184 additions and 1018 deletions

View file

@ -34,7 +34,7 @@ data class Capabilities(val firmwareVersion: String?, internal val forceEnableAl
/** Ability to mute notifications from specific nodes via admin messages. */
val canMuteNode = atLeast(V2_7_18)
/** FIXME: Ability to request neighbor information from other nodes. Disabled until working better. */
/** Ability to request neighbor information from other nodes. Gated to [UNRELEASED] until working reliably. */
val canRequestNeighborInfo = atLeast(UNRELEASED)
/** Ability to send verified shared contacts. Supported since firmware v2.7.12. */

View file

@ -16,16 +16,16 @@
*/
package org.meshtastic.core.model
sealed class ConnectionState {
sealed interface ConnectionState {
/** We are disconnected from the device, and we should be trying to reconnect. */
data object Disconnected : ConnectionState()
data object Disconnected : ConnectionState
/** We are currently attempting to connect to the device. */
data object Connecting : ConnectionState()
data object Connecting : ConnectionState
/** We are connected to the device and communicating normally. */
data object Connected : ConnectionState()
data object Connected : ConnectionState
/** The device is in a light sleep state, and we are waiting for it to wake up and reconnect to us. */
data object DeviceSleep : ConnectionState()
data object DeviceSleep : ConnectionState
}