mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
Annotated debug panel of to/from fields with hex form (#830)
This commit is contained in:
parent
d75188f03c
commit
e32a1dadea
5 changed files with 130 additions and 3 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue