From df72e95603d3eb12e94f75f6018f84a722a95809 Mon Sep 17 00:00:00 2001 From: Joey Leake Date: Mon, 31 Aug 2026 13:25:01 -0400 Subject: [PATCH] Document set_path_hash_mode / get_path_hash_mode in README Both commands already existed in commands/device.py but had no entry in the README's command reference table, so users had no way to discover them (reported as "missing"). Add rows under Advanced Configuration explaining that mode controls how many bytes of each hop's node ID are stored per hop in advertised/logged paths (bytes per hop = mode + 1), matching the plen >> 6 / hash_mode + 1 logic in reader.py and commands/base.py. Fixes #84 --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 58ea6f6..c4e9f36 100644 --- a/README.md +++ b/README.md @@ -529,6 +529,8 @@ All commands are async methods that return `Event` objects. Commands are organiz | `get_stats_packets()` | None | `STATS_PACKETS` | Get packet statistics (rx/tx totals, flood vs. direct, recv_errors when present) | | **Advanced Configuration** |||| | `set_multi_acks(multi_acks)` | `multi_acks: int` | `OK` | Set multi-acks mode (experimental ack repeats) | +| `set_path_hash_mode(mode)` | `mode: int` | `OK` | Set the device's path hash mode: how many bytes of each hop's node ID are stored per hop in advertised/logged paths (bytes per hop = `mode + 1`, e.g. mode 0 = 1 byte/hop, mode 1 = 2 bytes/hop) | +| `get_path_hash_mode()` | None | `int` | Get the device's current path hash mode | #### Contact Commands (`meshcore.commands.*`)