mirror of
https://github.com/meshcore-dev/meshcore-cli.git
synced 2026-04-20 22:13:48 +00:00
add tx power to infos
This commit is contained in:
parent
f417dee0d0
commit
779828cf8e
1 changed files with 2 additions and 0 deletions
2
mccli.py
2
mccli.py
|
|
@ -124,6 +124,8 @@ class MeshCore:
|
|||
self.result.set_result(self.contacts)
|
||||
case 5: # self info
|
||||
self.self_info["adv_type"] = data[1]
|
||||
self.self_info["tx_power"] = data[2]
|
||||
self.self_info["max_tx_power"] = data[3]
|
||||
self.self_info["public_key"] = data[4:36].hex()
|
||||
self.self_info["adv_lat"] = int.from_bytes(data[36:40], byteorder='little', signed=True)/1e6
|
||||
self.self_info["adv_lon"] = int.from_bytes(data[40:44], byteorder='little', signed=True)/1e6
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue