feat/per-device-wifi #14

Merged
troed merged 19 commits from feat/per-device-wifi into devel 2026-10-13 09:50:34 +02:00
Owner
No description provided.
readline() always returned a line on a device that streams the wake-word
metrics log, so run() never timed out and printed the device log forever.
Use an overall deadline, count and discard device-log lines, and print only
the WIFI: reply (so the echoed command and password never reach stdout).
esp_console_setup_history() calls linenoiseHistorySetMaxLen(max_history_len),
which returns 0 for any length below 1; esp_console_new_repl_usb_serial_jtag()
propagates that as ESP_FAIL, so provisioning_start() bailed out and the REPL was
never created -- no prompt and no reply to any command, for the life of the
device. The config asked for max_history_len 0 ("no history"), which linenoise
cannot express; 1 is the smallest accepted value.

Only a run on hardware could show this: the boot log carried

    E (945) console.common: set max history length to 0 failed
    E (946) provisioning: esp_console_new_repl_usb_serial_jtag -> ESP_FAIL

while the host suite (creds + tool) and the firmware build were both happy.
Guarded with _Static_assert so the regression fails the build instead.

Verified on device (MAC a0:f2:62:e3:47:34) after rebuild + reflash: the boot log
shows the REPL banner, the `communicator> ` prompt and
"provisioning console ready (wifi set/show/clear)"; `help` lists the wifi
command and `wifi show` answers `WIFI: SSID=... PASSWORD=set SRC=build`.

The plan's Task 4 prose (.max_history_len = 0) is corrected in the same commit;
the SDD ledger records the ruling and what remains unverified.
troed merged commit 52ceba66b6 into devel 2026-10-13 09:50:34 +02:00
troed referenced this pull request from a commit 2026-10-13 09:50:35 +02:00
troed deleted branch feat/per-device-wifi 2026-10-13 09:50:38 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starfleet/communicator-esp32!14
No description provided.