Skip to content

Add LongFred Soft-AP programming driver - #1

Merged
keskad merged 5 commits into
mainfrom
feat/longfred-driver
Aug 10, 2026
Merged

Add LongFred Soft-AP programming driver#1
keskad merged 5 commits into
mainfrom
feat/longfred-driver

Conversation

@keskad

@keskad keskad commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Extend HttpClient with request() (PUT/POST bodies) for Soft-AP config APIs.
  • Add longfred driver: discover longfred_prog* SSIDs, probe/program via /api/v1/settings, exit with POST /api/v1/programming-mode/off.
  • Optional commissioningNet, bigfred, and rosterMode on 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 --workspace
  • hello lists longfred driver capabilities
  • Against a device in pairing mode: scan → probe → program with wifi + optional bigfred/roster

Made with Cursor

keskad and others added 5 commits August 10, 2026 10:19
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>
@keskad
keskad merged commit e82543f into main Aug 10, 2026
3 checks passed
@keskad
keskad deleted the feat/longfred-driver branch August 10, 2026 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant