mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
refactor(ble): improve connection lifecycle and enhance OTA reliability (#4721)
Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
This commit is contained in:
parent
5a5aa1f026
commit
68b2b6d88e
19 changed files with 741 additions and 537 deletions
|
|
@ -59,10 +59,7 @@ interface RadioInterfaceService {
|
|||
fun onConnect()
|
||||
|
||||
/** Called by an interface when it has disconnected. */
|
||||
fun onDisconnect(isPermanent: Boolean)
|
||||
|
||||
/** Called by an interface when it has disconnected with an error. */
|
||||
fun onDisconnect(error: Any)
|
||||
fun onDisconnect(isPermanent: Boolean, errorMessage: String? = null)
|
||||
|
||||
/** Called by an interface when it has received raw data from the radio. */
|
||||
fun handleFromRadio(bytes: ByteArray)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue