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

@ -44,6 +44,13 @@ fun ConfigProtos.Config.toOneLineString(): String {
.replace('\n', ' ')
}
fun MeshProtos.MeshPacket.toOneLineString(): String {
val redactedFields = """(public_key:|private_key:|admin_key:)\s*".*""" // Redact keys
return this.toString()
.replace(redactedFields.toRegex()) { "${it.groupValues[1]} \"[REDACTED]\"" }
.replace('\n', ' ')
}
fun MeshProtos.toOneLineString(): String {
val redactedFields = """(public_key:|private_key:|admin_key:)\s*".*""" // Redact keys
return this.toString()