feat(companion, dispatcher): implement path hash mode for flood packets#44
Merged
rightup merged 3 commits intopyMC-dev:feat/companionfrom Mar 8, 2026
Merged
Conversation
- Added `set_path_hash_mode` method to CompanionBase and CompanionRadio to configure path hash mode for flood packets. - Introduced default path hash mode in Dispatcher for flood packets with 0 hops, allowing compatibility with packets built without the companion. - Updated Packet class to apply path hash mode and prevent overwriting when already set by the companion. - Enhanced tests to validate path hash mode functionality and ensure correct behavior for flood packets and TRACE payloads.
…erver - Changed _DRAIN_BATCH to 1 to ensure clients remain in sync with sends after every frame. - Updated error handling in _write_err to use ERR_CODE_NOT_FOUND for both bad channel and sendGroupMessage failures, aligning with firmware expectations.
…ses in CompanionFrameServer - Adjustments to improve compatibility with meshcore_py. - Changed client_idle_timeout_sec parameter to accept None, allowing users to disable the idle timeout and match firmware behavior. - Updated documentation to clarify the new behavior regarding connection management and idle timeout settings.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
set_path_hash_modemethod to CompanionBase and CompanionRadio to configure path hash mode for flood packets.