Skip to content

Commit 53f89c8

Browse files
committed
refresh infos when getting parameters
1 parent b53b316 commit 53f89c8

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "meshcore-cli"
7-
version = "0.6.12"
7+
version = "0.6.13"
88
authors = [
99
{ name="Florent de Lamotte", email="[email protected]" },
1010
]

src/meshcore_cli/meshcore_cli.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -661,21 +661,25 @@ async def next_cmd(mc, cmds, json_output=False):
661661
else:
662662
print(f"{'on' if process_event_message.print_snr else 'off'}")
663663
case "name":
664+
await mc.commands.send_appstart()
664665
if json_output :
665666
print(json.dumps(mc.self_info["name"]))
666667
else:
667668
print(mc.self_info["name"])
668669
case "tx":
670+
await mc.commands.send_appstart()
669671
if json_output :
670672
print(json.dumps(mc.self_info["tx_power"]))
671673
else:
672674
print(mc.self_info["tx_power"])
673675
case "coords":
676+
await mc.commands.send_appstart()
674677
if json_output :
675678
print(json.dumps({"lat": mc.self_info["adv_lat"], "lon":mc.self_info["adv_lon"]}))
676679
else:
677680
print(f"{mc.self_info['adv_lat']},{mc.self_info['adv_lon']}")
678681
case "radio":
682+
await mc.commands.send_appstart()
679683
if json_output :
680684
print(json.dumps(
681685
{"radio_freq": mc.self_info["radio_freq"],
@@ -1001,6 +1005,7 @@ async def next_cmd(mc, cmds, json_output=False):
10011005
print("]")
10021006

10031007
case "infos" | "i" :
1008+
await mc.commands.send_appstart()
10041009
print(json.dumps(mc.self_info,indent=4))
10051010

10061011
case "advert" | "a":

0 commit comments

Comments
 (0)