Add raw pulse-train callback API with documentation and example integration#211
Draft
Copilot wants to merge 4 commits into
Draft
Add raw pulse-train callback API with documentation and example integration#211Copilot wants to merge 4 commits into
Copilot wants to merge 4 commits into
Conversation
Copilot
AI
changed the title
[WIP] Add user callback for raw pulse trains
Add raw pulse-train callback API for custom decoder integrations
May 27, 2026
Owner
|
@copilot Pls also document the interface, and create an example |
Contributor
Author
Added both in commit
|
Copilot
AI
changed the title
Add raw pulse-train callback API for custom decoder integrations
Add raw pulse-train callback API with documentation and example integration
May 27, 2026
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.
This change adds a user-registerable callback for raw pulse/gap trains so downstream code can consume captured RF pulse data even when no built-in decoder matches. The callback is invoked from the decoder task for every captured signal, enabling on-device custom protocol decoding without parsing serial output.
Public API: raw pulse callback registration
rtl_433_raw_pulse_cbtypedef to expose raw pulse/gap, pulse count, duration, and RSSI.rtl_433_ESP::setRawPulsesCallback(...)to register/unregister the callback.Decoder pipeline wiring
_setRawPulsesCallback(...)plumbing.rtl_433_DecoderTaskafter pulse data is prepared, independent of decode result (eventsmay be zero or non-zero).Concurrency safety
Documentation and example updates
README.md(including callback signature and pointer lifetime note).example/OOK_Receiver/OOK_Receiver.inoto registersetRawPulsesCallback(...)and demonstrate raw pulse/gap logging.example/OOK_Receiver/README.mdto note both JSON and raw pulse callback paths.