mirror of
https://github.com/meshcore-dev/meshcore-cli.git
synced 2026-04-20 22:13:48 +00:00
simplify path display on mccli_tcp
This commit is contained in:
parent
fa9b337548
commit
43215b2037
1 changed files with 4 additions and 1 deletions
|
|
@ -99,7 +99,10 @@ class MeshCore () :
|
|||
c["type"] = data[33]
|
||||
c["flags"] = data[34]
|
||||
c["out_path_len"] = data[35]
|
||||
c["out_path"] = data[36:100].hex()
|
||||
plen = data[35]
|
||||
if (plen == 255) :
|
||||
plen = 0
|
||||
c["out_path"] = data[36:36+plen].hex()
|
||||
c["adv_name"] = data[100:132].decode().replace("\0","")
|
||||
c["last_advert"] = int.from_bytes(data[132:136], byteorder='little')
|
||||
c["adv_lat"] = int.from_bytes(data[136:140], byteorder='little',signed=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue