mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
refactor(transport): complete transport architecture overhaul — extract callback, wire BleReconnectPolicy, fix safety issues (#5080)
This commit is contained in:
parent
962c619c4c
commit
e85300531e
64 changed files with 1184 additions and 1018 deletions
|
|
@ -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. */
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue