mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
feat: add traceroute (#620)
This commit is contained in:
parent
72c278c92c
commit
da5f1d529d
8 changed files with 95 additions and 2 deletions
|
|
@ -51,4 +51,14 @@ data class MeshLog(@PrimaryKey val uuid: String,
|
|||
return null
|
||||
} ?: nodeInfo?.position
|
||||
}
|
||||
}
|
||||
|
||||
val routeDiscovery: MeshProtos.RouteDiscovery?
|
||||
get() {
|
||||
return meshPacket?.run {
|
||||
if (hasDecoded() && decoded.portnumValue == Portnums.PortNum.TRACEROUTE_APP_VALUE) {
|
||||
return MeshProtos.RouteDiscovery.parseFrom(decoded.payload)
|
||||
}
|
||||
return null
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue