feat(ble): Add support for LogRadio characteristic, enhance logs (#3691)

Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
This commit is contained in:
James Rich 2025-11-13 13:53:37 -06:00 committed by GitHub
parent ac5412b499
commit 6590ea0ef0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 318 additions and 143 deletions

View file

@ -115,7 +115,7 @@ constructor(
}
fun handleQueueStatus(queueStatus: MeshProtos.QueueStatus) {
Timber.d("queueStatus ${queueStatus.toOneLineString()}")
Timber.d("[queueStatus] ${queueStatus.toOneLineString()}")
val (success, isFull, requestId) = with(queueStatus) { Triple(res == 0, free == 0, meshPacketId) }
if (success && isFull) return // Queue is full, wait for free != 0
if (requestId != 0) {
@ -184,7 +184,7 @@ constructor(
if (connectionStateHolder.getState() != ConnectionState.CONNECTED) throw RadioNotConnectedException()
sendToRadio(ToRadio.newBuilder().apply { this.packet = packet })
} catch (ex: Exception) {
Timber.e("sendToRadio error:", ex)
Timber.e(ex, "sendToRadio error: ${ex.message}")
future.complete(false)
}
return future