mirror of
https://github.com/meshcore-dev/meshcore-cli.git
synced 2026-04-20 22:13:48 +00:00
Store only meaningfull part of path
This commit is contained in:
parent
76f5280821
commit
2e7d9a2db0
1 changed files with 4 additions and 1 deletions
5
mccli.py
5
mccli.py
|
|
@ -114,7 +114,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