From ee75ed12dda736d308f8560e809ded6e9494906a Mon Sep 17 00:00:00 2001 From: Florent Date: Fri, 27 Feb 2026 06:58:05 -0400 Subject: [PATCH] add get_path_hash_mode --- src/meshcore/commands/device.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/meshcore/commands/device.py b/src/meshcore/commands/device.py index 87347c2..af986db 100644 --- a/src/meshcore/commands/device.py +++ b/src/meshcore/commands/device.py @@ -296,3 +296,10 @@ class DeviceCommands(CommandHandlerBase): logger.debug(f"Setting path mode to {mode}") data = b"\x3d\0" + mode.to_bytes(1, "little") return await self.send(data, [EventType.OK, EventType.ERROR]) + + async def get_path_hash_mode(self) -> int: + res = await self.send_device_query() + if not res is None and res.type != EventType.ERROR: + if "path_hash_mode" in res.payload: + return res.payload["path_hash_mode"] + return 0