Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XkZEiWoJmJsqnYdysAR9wp
…intext MQTT Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XkZEiWoJmJsqnYdysAR9wp
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XkZEiWoJmJsqnYdysAR9wp
A build can enable [network.wifi] and [network.lte] at once. The relay runs on WiFi while it is up and on LTE otherwise, and moves back to WiFi once it has stayed up for 20 s. LAN direct and the SavvyCAN logger run on WiFi, also in a build that joins LTE. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XkZEiWoJmJsqnYdysAR9wp
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XkZEiWoJmJsqnYdysAR9wp
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XkZEiWoJmJsqnYdysAR9wp
This was referenced Dec 6, 2026
The ESP32-S3 build with both uplinks overflowed static RAM by ~47 KB (stack.x: cannot move location counter backwards). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XkZEiWoJmJsqnYdysAR9wp
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.
Requested by Michaël · project thread
What and why
Phase 3 of OpenCarControls/contracts#44, dual uplink (Michaël's call on the phase 3 decision): an ESP build can enable
[network.wifi]and[network.lte]together, so the car uses WiFi at home and LTE on the road.select_uplinkreturnsUplink::Bothinstead of an error. xtask starts WiFi asnet_stackand LTE aslte_stack, and spawnsmqtt_driver_task(net_stack, Some(lte_stack), …). WiFi-only and LTE-only builds passNone.mqtt_driver_taskconnects on WiFi when it is up, on LTE otherwise. A session ends when its stack loses its configuration (reconnects on the other one), and a session on LTE moves back to WiFi once WiFi has stayed up for 20 s, so a car at the edge of WiFi range doesn't bounce. Each move is a new broker session, so the app re-handshakes (unknown-session frame, as for any broker reconnect).esp-lte-mtls.tomlnow enables WiFi, LTE and LAN, so the dual-uplink path is linted and built on Xtensa.Docs:
lte.md(new "WiFi and LTE together" section),lan.md,mqtt-relay.md,architecture.md,config.toml.example.How it was tested
cargo test -p xtaskpasses, with new tests forUplink::Both, the spawn code with and without the fallback, and the LTE stack variable name.cargo fmt --all -- --checkpasses.MQTT: using WiFi/MQTT: using LTE.Checklist
feat(scope):,fix(scope):,docs:,chore:)cargo fmt --all -- --check,cargo xtask clippyandcargo xtask testpass (fmt and xtask tests pass locally; clippy and builds by CI)docs/or README) updated if behaviour changedconfig.toml, credentials, build artifacts or.binfiles committedSafety
is_can_read_only()and BLE checks are intact (explain below)Generated by Claude Code