Open
Conversation
Adds support for peer-to-peer LocoNet Configuration Variable (CV) programming. This change introduces the `LocoNetCVAccess` class to handle `OPC_PEER_XFER` messages for CV read/write operations. The existing `LocoNetCV` class is refactored to use this new class, while preserving existing functionality for discovery and programming start/stop. A new example sketch (`CV-Access-ESP32`) is included to demonstrate the new feature, along with unit tests for the CV read and write callbacks. The `README.md` has been updated with documentation for the new functionality.
Removes the incorrect `build_src_filter` from the `[env:esp32dev]` section of the `platformio.ini` file. This was causing the CI build to fail because it could not find the source files. The test environment configuration has also been reverted to use `test_build_src = yes` to ensure consistency with local testing.
Adds the missing private member function declaration for `processMessage` to the `LocoNetCV` class in `LocoNetSVCV.h`. This resolves a compilation error that was causing the CI build to fail.
Implement LocoNet CV Access
This commit introduces a new `LocoNetTurnout` class to provide a high-level interface for controlling model railroad turnouts (switches) via LocoNet. The new class encapsulates the creation of `OPC_SW_REQ` messages, simplifying the process for users of the library. Key changes: - Added `LocoNetTurnout.h` and `LocoNetTurnout.cpp` with the new class implementation. - Included a new example sketch, `examples/Turnout-ESP32/Turnout-ESP32.ino`, to demonstrate usage. - Updated `keywords.txt` to include `LocoNetTurnout` for Arduino IDE syntax highlighting.
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.
No description provided.