This commit is contained in:
Florent
2026-07-27 10:27:00 -04:00
parent c61f94bbfe
commit c487efbe18
2 changed files with 10 additions and 2 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project]
name = "meshcore"
version = "2.3.7"
version = "2.3.8"
authors = [
{ name="Florent de Lamotte", email="florent@frizoncorrea.fr" },
{ name="Alex Wolden", email="awolden@gmail.com" },
+8
View File
@@ -353,6 +353,11 @@ class MessagingCommands(CommandHandlerBase):
else:
raise TypeError(f"set_flood_scope: unsupported scope type {type(scope).__name__}")
if force_unscoped:
logger.debug("Forcing unscoped messages")
elif scope_key is None:
logger.debug(f"Resetting scope")
else:
logger.debug(f"Setting scope to {scope_key.hex()}")
cmd_data = bytearray([CommandType.SET_FLOOD_SCOPE.value])
@@ -398,6 +403,9 @@ class MessagingCommands(CommandHandlerBase):
return await self.send(cmd_data, [EventType.OK, EventType.ERROR])
async def reset_default_flood_scope(self):
return await self.set_default_flood_scope(None)
async def get_default_flood_scope(self):
logger.debug(f"Getting default flood scope")
cmd_data = bytearray([CommandType.GET_DEFAULT_FLOOD_SCOPE.value])