mirror of
https://github.com/meshcore-dev/meshcore-cli.git
synced 2026-04-20 22:13:48 +00:00
print 3 first bytes of node key when doing discovery
This commit is contained in:
parent
ce8b48612e
commit
b50c0dc226
1 changed files with 2 additions and 2 deletions
|
|
@ -2945,7 +2945,7 @@ async def next_cmd(mc, cmds, json_output=False):
|
|||
print(f"Discovered {len(dn)} nodes:")
|
||||
for n in dn:
|
||||
try :
|
||||
name = f"{n['pubkey'][0:2]} {mc.get_contact_by_key_prefix(n['pubkey'])['adv_name']}"
|
||||
name = f"{n['pubkey'][0:6]} {mc.get_contact_by_key_prefix(n['pubkey'])['adv_name']}"
|
||||
except TypeError:
|
||||
name = n["pubkey"][0:16]
|
||||
if n['node_type'] >= len(CONTACT_TYPENAMES):
|
||||
|
|
@ -2953,7 +2953,7 @@ async def next_cmd(mc, cmds, json_output=False):
|
|||
else:
|
||||
type = CONTACT_TYPENAMES[n['node_type']]
|
||||
|
||||
print(f" {name:22} {type:>4} SNR: {n['SNR_in']:6,.2f}->{n['SNR']:6,.2f} RSSI: ->{n['RSSI']:4}")
|
||||
print(f" {name:28} {type:>4} SNR: {n['SNR_in']:6,.2f}->{n['SNR']:6,.2f} RSSI: ->{n['RSSI']:4}")
|
||||
|
||||
case "req_regions"|"rr":
|
||||
argnum = 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue