mirror of
https://github.com/meshcore-dev/meshcore_py.git
synced 2026-09-14 09:46:39 +00:00
fix issue when sending a cli cmd to room or sensor
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
||||
|
||||
[project]
|
||||
name = "meshcore"
|
||||
version = "2.3.9"
|
||||
version = "2.3.9.1"
|
||||
authors = [
|
||||
{ name="Florent de Lamotte", email="florent@frizoncorrea.fr" },
|
||||
{ name="Alex Wolden", email="awolden@gmail.com" },
|
||||
|
||||
@@ -78,10 +78,10 @@ class MessagingCommands(CommandHandlerBase):
|
||||
dst_type = AdvType.REPEATER.value
|
||||
|
||||
cmd_data = bytearray([CommandType.SEND_TXT_MSG.value])
|
||||
if dst_type == AdvType.REPEATER.value :
|
||||
cmd_data.append(TxtType.CLI_DATA.value)
|
||||
else:
|
||||
if dst_type == AdvType.CHAT.value :
|
||||
cmd_data.append(TxtType.CLI_CMD.value)
|
||||
else:
|
||||
cmd_data.append(TxtType.CLI_DATA.value)
|
||||
cmd_data.append(0) # first and only attempt
|
||||
cmd_data.extend(timestamp.to_bytes(4, "little"))
|
||||
cmd_data.extend(dst_bytes)
|
||||
|
||||
Reference in New Issue
Block a user