diff --git a/pyproject.toml b/pyproject.toml index 87175f0..518d99f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "meshcore-cli" -version = "1.1.11" +version = "1.2.0" authors = [ { name="Florent de Lamotte", email="florent@frizoncorrea.fr" }, ] @@ -17,7 +17,7 @@ classifiers = [ ] license = "MIT" license-files = ["LICEN[CS]E*"] -dependencies = [ "meshcore >= 2.0.4", "prompt_toolkit >= 3.0.50", "requests >= 2.28.0" ] +dependencies = [ "meshcore >= 2.1.0", "prompt_toolkit >= 3.0.50", "requests >= 2.28.0" ] [project.urls] Homepage = "https://github.com/fdlamotte/meshcore-cli" diff --git a/src/meshcore_cli/meshcore_cli.py b/src/meshcore_cli/meshcore_cli.py index a5f0a92..06c5224 100644 --- a/src/meshcore_cli/meshcore_cli.py +++ b/src/meshcore_cli/meshcore_cli.py @@ -1565,7 +1565,7 @@ async def next_cmd(mc, cmds, json_output=False): await mc.ensure_contacts() contact = mc.get_contact_by_name(cmds[1]) timeout = 0 if not "timeout" in contact else contact["timeout"] - res = await mc.commands.binary.req_telemetry(contact, timeout) + res = await mc.commands.req_telemetry(contact, timeout) if res is None : if json_output : print(json.dumps({"error" : "Getting data"})) @@ -1595,7 +1595,7 @@ async def next_cmd(mc, cmds, json_output=False): else : to_secs = int(cmds[3]) * 60 timeout = 0 if not "timeout" in contact else contact["timeout"] - res = await mc.commands.binary.req_mma(contact, from_secs, to_secs, timeout) + res = await mc.commands.req_mma(contact, from_secs, to_secs, timeout) if res is None : if json_output : print(json.dumps({"error" : "Getting data"})) @@ -1609,7 +1609,7 @@ async def next_cmd(mc, cmds, json_output=False): await mc.ensure_contacts() contact = mc.get_contact_by_name(cmds[1]) timeout = 0 if not "timeout" in contact else contact["timeout"] - res = await mc.commands.binary.req_acl(contact, timeout) + res = await mc.commands.req_acl(contact, timeout) if res is None : if json_output : print(json.dumps({"error" : "Getting data"})) @@ -1634,7 +1634,7 @@ async def next_cmd(mc, cmds, json_output=False): await mc.ensure_contacts() contact = mc.get_contact_by_name(cmds[1]) timeout = 0 if not "timeout" in contact else contact["timeout"] - res = await mc.commands.binary.req_binary(contact, bytes.fromhex(cmds[2]), timeout) + res = await mc.commands.req_binary(contact, bytes.fromhex(cmds[2]), timeout) if res is None : if json_output : print(json.dumps({"error" : "Getting binary data"}))