Add LongFred Soft-AP programming driver - #1
Merged
Merged
Conversation
Extend HttpClient with request() for PUT/POST, advertise commissioning network addressing, and program longfred_prog_* APs via the HTTP settings API used by LongFred firmware pairing mode. Co-authored-by: Cursor <cursoragent@cursor.com>
- `verify_reports_bigfred_login_mismatch`: confirms `bigfred.login` mismatch surfaces in the returned mismatch list. - `verify_reports_roster_mode_mismatch`: confirms `roster.mode` mismatch is reported when the GET payload disagrees with the request. Co-authored-by: Cursor <cursoragent@cursor.com>
Keep driver helpers free of #[cfg(test)] modules and exercise identify/settings/verify through the public longfred API from integration tests next to longfred_write. Co-authored-by: Cursor <cursoragent@cursor.com>
Add `--interface`/`-i` on both the top-level CLI and `daemon`, plus `WIRELESS_PROGRAMMER_INTERFACE`. Prefer a named iface when set; otherwise keep auto-selecting the first wireless device. Validate at start-up and surface the choice via `link-status`. Co-authored-by: Cursor <cursoragent@cursor.com>
Mirror microinit's make build / make release helpers, plus check, test, fmt, clippy, clean, and an optional static musl release target that writes into dist/. Co-authored-by: Cursor <cursoragent@cursor.com>
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.
Summary
HttpClientwithrequest()(PUT/POST bodies) for Soft-AP config APIs.longfreddriver: discoverlongfred_prog*SSIDs, probe/program via/api/v1/settings, exit withPOST /api/v1/programming-mode/off.commissioningNet,bigfred, androsterModeon capabilities / program request; docs for the new driver.Depends on the LongFred firmware programming-mode HTTP contract from the companion longfred PR.
Test plan
cargo test --workspacehellolistslongfreddriver capabilitiesMade with Cursor