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
This commit is contained in:
Joey Leake
2026-08-31 13:25:01 -04:00
parent 664ba0c99e
commit df72e95603
+2
View File
@@ -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.*`)