Annotated debug panel of to/from fields with hex form (#830)

This commit is contained in:
Mike Cumings 2024-02-02 18:55:41 -08:00 committed by GitHub
parent d75188f03c
commit e32a1dadea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 130 additions and 3 deletions

View file

@ -42,6 +42,19 @@ data class MeshLog(@PrimaryKey val uuid: String,
return null
}
val myNodeInfo: MeshProtos.MyNodeInfo?
get() {
if (message_type == "MyNodeInfo") {
val builder = MeshProtos.MyNodeInfo.newBuilder()
try {
TextFormat.getParser().merge(raw_message, builder)
return builder.build()
} catch (e: IOException) {
}
}
return null
}
val position: MeshProtos.Position?
get() {
return meshPacket?.run {