mirror of
https://github.com/meshcore-dev/meshcore-cli.git
synced 2026-04-20 22:13:48 +00:00
fix set_channel
This commit is contained in:
parent
4f284191b9
commit
fd7a0e114c
3 changed files with 6 additions and 6 deletions
|
|
@ -17,12 +17,12 @@
|
||||||
|
|
||||||
meshcore = python3Packages.buildPythonPackage rec {
|
meshcore = python3Packages.buildPythonPackage rec {
|
||||||
pname = "meshcore";
|
pname = "meshcore";
|
||||||
version = "2.3.2";
|
version = "2.3.5";
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
|
|
||||||
src = python3Packages.fetchPypi {
|
src = python3Packages.fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "sha256-mM64woqKvltbd/CUGzD5m6PU/CNQ923pm2yKTneNrW8=";
|
sha256 = "sha256-EUK0iFaCN2tpOL3XL2ejVLGz/gLTdvzPpvgBxETLL3w=";
|
||||||
};
|
};
|
||||||
|
|
||||||
build-system = [ python3Packages.hatchling ];
|
build-system = [ python3Packages.hatchling ];
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "meshcore-cli"
|
name = "meshcore-cli"
|
||||||
version = "1.5.4"
|
version = "1.5.5"
|
||||||
authors = [
|
authors = [
|
||||||
{ name="Florent de Lamotte", email="florent@frizoncorrea.fr" },
|
{ name="Florent de Lamotte", email="florent@frizoncorrea.fr" },
|
||||||
]
|
]
|
||||||
|
|
@ -17,7 +17,7 @@ classifiers = [
|
||||||
]
|
]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
license-files = ["LICEN[CS]E*"]
|
license-files = ["LICEN[CS]E*"]
|
||||||
dependencies = [ "meshcore >= 2.3.2",
|
dependencies = [ "meshcore >= 2.3.5",
|
||||||
"bleak >= 0.22",
|
"bleak >= 0.22",
|
||||||
"prompt_toolkit >= 3.0.50",
|
"prompt_toolkit >= 3.0.50",
|
||||||
"requests >= 2.28.0" ]
|
"requests >= 2.28.0" ]
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@ import re
|
||||||
from meshcore import MeshCore, EventType, logger
|
from meshcore import MeshCore, EventType, logger
|
||||||
|
|
||||||
# Version
|
# Version
|
||||||
VERSION = "v1.5.4"
|
VERSION = "v1.5.5"
|
||||||
|
|
||||||
# default ble address is stored in a config file
|
# default ble address is stored in a config file
|
||||||
MCCLI_CONFIG_DIR = str(Path.home()) + "/.config/meshcore/"
|
MCCLI_CONFIG_DIR = str(Path.home()) + "/.config/meshcore/"
|
||||||
|
|
@ -2614,7 +2614,7 @@ async def next_cmd(mc, cmds, json_output=False):
|
||||||
elif len(cmds[2]) != 32:
|
elif len(cmds[2]) != 32:
|
||||||
res = None
|
res = None
|
||||||
else:
|
else:
|
||||||
res = await set_channel(mc, "", cmds[1], bytes.fromhex(cmds[3]))
|
res = await set_channel(mc, "", cmds[1], bytes.fromhex(cmds[2]))
|
||||||
if res is None:
|
if res is None:
|
||||||
print("Error adding channel")
|
print("Error adding channel")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue