Add heard_repeats to API payload and fix timer sequence to post after listening window#64
Merged
MrAlders0n merged 2 commits intodevfrom Dec 19, 2025
Merged
Conversation
- Modified postToMeshMapperAPI to accept and include heard_repeats field - Changed RX listening flow: ping -> listen 7s -> finalize -> post API - Replaced API countdown timer with RX listening countdown timer - Updated status messages: "Listening for heard repeats (7s)" during listening - Added comprehensive debug logging for new sequence - Changed formatRepeaterTelemetry to return "None" instead of "none" - API post now happens strictly after 7s listening window completes Co-authored-by: MrAlders0n <55921894+MrAlders0n@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add heard repeats data to API payload and fix posting logic
Add heard_repeats to API payload and fix timer sequence to post after listening window
Dec 19, 2025
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.
The app was posting to MeshMapper API in parallel with the 7-second RX listening window, causing API payloads to lack heard repeats/echoes data. Additionally, the API payload did not include heard repeats information.
Changes
API Payload Enhancement
heard_repeatsfield to MeshMapper API payloadformatRepeaterTelemetry()for consistency with session log"4e(1.75),b7(-0.75)"or"None"if no echoes heardTimer Sequence Refactored
apiCountdownTimer, addedrxListeningCountdownTimer"Listening for heard repeats (7s)"with active countdownImplementation Details
postToMeshMapperAPI(lat, lon, heardRepeats)to accept heard_repeats parameterscheduleApiPostAndMapRefresh()intopostApiAndRefreshMap()called after listening completessendPing()to schedule sequential execution via single timeoutformatRepeaterTelemetry()to return"None"(capital N) per specAll new code includes debug logging via existing
debugLog()pattern.Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.