Repository navigation
Add ignoreNextMessages: stay connected but leave messages unanswered - #28
Merged
Merged
Conversation
POST /command {"command": "ignoreNextMessages", "value": N} makes the pod skip the next N messages without replying, keeping the link up. The phone then hits its read timeout and tears the link down itself, which reproduces the unresponsive-pod path (loopandlearn/OmnipodKit#199) on demand. A skipped message doesn't advance the pod's sequence, so the phone's retry after reconnecting is processed normally.
Instructions for useI tried to test this but I needed some hand holding. I asked Claude to help me figure out how to use the new feature.
Then Claude gave me the instructions for what I need to type into any terminal, where I used the IP address for my rPi in place of This seemed to work, but I can do more testing tomorrow. |
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.
Adds an API command that makes the pod skip the next N messages without replying, while keeping the link up:
The phone hits its read timeout and tears the link down itself. That reproduces OmnipodKit's unresponsive-pod path on demand (loopandlearn/OmnipodKit#199). A skipped message doesn't advance the pod's sequence, so the phone's next attempt after reconnecting is processed normally.
Used to test loopandlearn/OmnipodKit#209 in the iOS Simulator. It showed the keep-alive reconnect after this teardown on next-dev, its loss in the first version of #209, and its return with the fix.
go test ./pkg/pod/...passes. The README documents the command.