From 1227d417cf968b707e61e66c467caee42a8b9925 Mon Sep 17 00:00:00 2001 From: Florent Date: Sat, 27 Dec 2025 11:03:08 +0100 Subject: [PATCH] fixed sending msg to channel with name --- src/meshcore_cli/meshcore_cli.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/meshcore_cli/meshcore_cli.py b/src/meshcore_cli/meshcore_cli.py index a391723..877b619 100644 --- a/src/meshcore_cli/meshcore_cli.py +++ b/src/meshcore_cli/meshcore_cli.py @@ -2519,7 +2519,9 @@ async def next_cmd(mc, cmds, json_output=False): if cmds[1].isnumeric() : nb = int(cmds[1]) else: - nb = get_channel_by_name(mc, cmds[1])['channel_idx'] + chan = await get_channel_by_name(mc, cmds[1]) + print (chan) + nb = chan['channel_idx'] res = await send_chan_msg(mc, nb, cmds[2]) logger.debug(res) if res.type == EventType.ERROR: