meshcore-cli 1.1.39__py3-none-any.whl → 1.1.40__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- meshcore_cli/meshcore_cli.py +16 -1
- {meshcore_cli-1.1.39.dist-info → meshcore_cli-1.1.40.dist-info}/METADATA +2 -2
- meshcore_cli-1.1.40.dist-info/RECORD +8 -0
- meshcore_cli-1.1.39.dist-info/RECORD +0 -8
- {meshcore_cli-1.1.39.dist-info → meshcore_cli-1.1.40.dist-info}/WHEEL +0 -0
- {meshcore_cli-1.1.39.dist-info → meshcore_cli-1.1.40.dist-info}/entry_points.txt +0 -0
- {meshcore_cli-1.1.39.dist-info → meshcore_cli-1.1.40.dist-info}/licenses/LICENSE +0 -0
meshcore_cli/meshcore_cli.py
CHANGED
|
@@ -23,7 +23,7 @@ from prompt_toolkit.shortcuts import radiolist_dialog
|
|
|
23
23
|
from meshcore import MeshCore, EventType, logger
|
|
24
24
|
|
|
25
25
|
# Version
|
|
26
|
-
VERSION = "v1.1.
|
|
26
|
+
VERSION = "v1.1.40"
|
|
27
27
|
|
|
28
28
|
# default ble address is stored in a config file
|
|
29
29
|
MCCLI_CONFIG_DIR = str(Path.home()) + "/.config/meshcore/"
|
|
@@ -398,6 +398,7 @@ def make_completion_dict(contacts, pending={}, to=None, channels=None):
|
|
|
398
398
|
"telemetry_mode_env" : {"always" : None, "device":None, "never":None},
|
|
399
399
|
"advert_loc_policy" : {"none" : None, "share" : None},
|
|
400
400
|
"auto_update_contacts" : {"on":None, "off":None},
|
|
401
|
+
"multi_acks" : {"on": None, "off":None},
|
|
401
402
|
"max_attempts" : None,
|
|
402
403
|
"max_flood_attempts" : None,
|
|
403
404
|
"flood_after" : None,
|
|
@@ -424,6 +425,7 @@ def make_completion_dict(contacts, pending={}, to=None, channels=None):
|
|
|
424
425
|
"telemetry_mode_env":None,
|
|
425
426
|
"advert_loc_policy":None,
|
|
426
427
|
"auto_update_contacts":None,
|
|
428
|
+
"multi_acks":None,
|
|
427
429
|
"max_attempts":None,
|
|
428
430
|
"max_flood_attempts":None,
|
|
429
431
|
"flood_after":None,
|
|
@@ -1389,6 +1391,13 @@ async def next_cmd(mc, cmds, json_output=False):
|
|
|
1389
1391
|
print(f"Error : {res}")
|
|
1390
1392
|
else :
|
|
1391
1393
|
print(f"manual add contact: {mac}")
|
|
1394
|
+
case "multi_acks":
|
|
1395
|
+
ma = (cmds[2] == "on") or (cmds[2] == "true") or (cmds[2] == "yes") or (cmds[2] == "1")
|
|
1396
|
+
res = await mc.commands.set_multi_acks(ma)
|
|
1397
|
+
if res.type == EventType.ERROR:
|
|
1398
|
+
print(f"Error : {res}")
|
|
1399
|
+
else :
|
|
1400
|
+
print(f"multi_acks: {ma}")
|
|
1392
1401
|
case "auto_update_contacts":
|
|
1393
1402
|
auc = (cmds[2] == "on") or (cmds[2] == "true") or (cmds[2] == "yes") or (cmds[2] == "1")
|
|
1394
1403
|
mc.auto_update_contacts=auc
|
|
@@ -1579,6 +1588,12 @@ async def next_cmd(mc, cmds, json_output=False):
|
|
|
1579
1588
|
print(json.dumps(res.payload, indent=4))
|
|
1580
1589
|
else:
|
|
1581
1590
|
print(f"Using {res.payload['used_kb']}kB of {res.payload['total_kb']}kB")
|
|
1591
|
+
case "multi_acks" :
|
|
1592
|
+
await mc.commands.send_appstart()
|
|
1593
|
+
if json_output :
|
|
1594
|
+
print(json.dumps({"multi_acks" : mc.self_info["multi_acks"]}))
|
|
1595
|
+
else :
|
|
1596
|
+
print(f"multi_acks: {mc.self_info['multi_acks']}")
|
|
1582
1597
|
case "manual_add_contacts" :
|
|
1583
1598
|
await mc.commands.send_appstart()
|
|
1584
1599
|
if json_output :
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: meshcore-cli
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.40
|
|
4
4
|
Summary: Command line interface to meshcore companion radios
|
|
5
5
|
Project-URL: Homepage, https://github.com/fdlamotte/meshcore-cli
|
|
6
6
|
Project-URL: Issues, https://github.com/fdlamotte/meshcore-cli/issues
|
|
@@ -10,7 +10,7 @@ License-File: LICENSE
|
|
|
10
10
|
Classifier: Operating System :: OS Independent
|
|
11
11
|
Classifier: Programming Language :: Python :: 3
|
|
12
12
|
Requires-Python: >=3.10
|
|
13
|
-
Requires-Dist: meshcore>=2.1.
|
|
13
|
+
Requires-Dist: meshcore>=2.1.19
|
|
14
14
|
Requires-Dist: prompt-toolkit>=3.0.50
|
|
15
15
|
Requires-Dist: requests>=2.28.0
|
|
16
16
|
Description-Content-Type: text/markdown
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
meshcore_cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
meshcore_cli/__main__.py,sha256=PfYgibmu2LEtC-OV7L1UgmvV3swJ5rQ4bbXHlwUFlgE,83
|
|
3
|
+
meshcore_cli/meshcore_cli.py,sha256=oWPnTuetuus4oaP-QQlNJx7IIeRRYGCXUG4FSYTF7AM,116312
|
|
4
|
+
meshcore_cli-1.1.40.dist-info/METADATA,sha256=wsHZfVpYP4kvQMI2KvKyHbygTO-Sgq_-8Nr6ghnnPrk,11630
|
|
5
|
+
meshcore_cli-1.1.40.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
6
|
+
meshcore_cli-1.1.40.dist-info/entry_points.txt,sha256=77V29Pyth11GteDk7tneBN3MMk8JI7bTlS-BGSmxCmI,103
|
|
7
|
+
meshcore_cli-1.1.40.dist-info/licenses/LICENSE,sha256=F9s987VtS0AKxW7LdB2EkLMkrdeERI7ICdLJR60A9M4,1066
|
|
8
|
+
meshcore_cli-1.1.40.dist-info/RECORD,,
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
meshcore_cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
meshcore_cli/__main__.py,sha256=PfYgibmu2LEtC-OV7L1UgmvV3swJ5rQ4bbXHlwUFlgE,83
|
|
3
|
-
meshcore_cli/meshcore_cli.py,sha256=z4m_c8BjC0W2tBovhFHFMO8JMQB4i8TlrU_sL4s6q-U,115459
|
|
4
|
-
meshcore_cli-1.1.39.dist-info/METADATA,sha256=zhtF7tz4od9NJEaak8G6HvLqeFH_uW2y-r5zLnh2EMM,11630
|
|
5
|
-
meshcore_cli-1.1.39.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
6
|
-
meshcore_cli-1.1.39.dist-info/entry_points.txt,sha256=77V29Pyth11GteDk7tneBN3MMk8JI7bTlS-BGSmxCmI,103
|
|
7
|
-
meshcore_cli-1.1.39.dist-info/licenses/LICENSE,sha256=F9s987VtS0AKxW7LdB2EkLMkrdeERI7ICdLJR60A9M4,1066
|
|
8
|
-
meshcore_cli-1.1.39.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|