mirror of
https://github.com/meshcore-dev/meshcore-cli.git
synced 2026-04-20 22:13:48 +00:00
fixed call to req_telemetry
This commit is contained in:
parent
0606d218de
commit
7e5cd9f7a7
1 changed files with 2 additions and 2 deletions
|
|
@ -1043,11 +1043,11 @@ async def next_cmd(mc, cmds, json_output=False):
|
|||
else :
|
||||
print(json.dumps(res.payload, indent=4))
|
||||
|
||||
case "req_telemetry" | "lt" :
|
||||
case "req_telemetry" | "rt" :
|
||||
argnum = 1
|
||||
await mc.ensure_contacts()
|
||||
contact = mc.get_contact_by_name(cmds[1])
|
||||
res = await mc.commands.send_statusreq(contact)
|
||||
res = await mc.commands.send_telemetry_req(contact)
|
||||
logger.debug(res)
|
||||
if res.type == EventType.ERROR:
|
||||
print(f"Error while requesting telemetry")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue