Skip to content

fix(rp2350w): build CYW43 AutoResearch peer - #3844

Closed
zackees wants to merge 2 commits into
masterfrom
feat/rp2350w-autoresearch-http-peer
Closed

zackees wants to merge 2 commits into
masterfrom
feat/rp2350w-autoresearch-http-peer

Conversation

@zackees

@zackees zackees commented Aug 6, 2026 •

Copy link
Copy Markdown
Member

Summary

  • scope ESP WiFi unity implementation to ESP32 builds and store both WiFi backend states in l::Singleton
  • place the RP2350W Arduino-Pico WiFi dependency ahead of AutoResearch's header-derived low-memory guard so fbuild selects its implementation sources
  • update the fbuild pin to 2.5.10 and add singleton/platform-scope regression checks

Verification

  • uv run pytest ci/tests/test_rp2350w_board_config.py -q (8 passed)
  • �ash lint (passed)
  • �ash compile rp2350w --examples AutoResearch (fbuild, no temporary WiFi dependency override; passed: 1.12 MB flash, 124.26 KB RAM)

Follow-up to #3843.

Summary by CodeRabbit

  • New Features

    • Added RP2350W networking support for the AutoResearch example, including HTTP endpoints for peer requests.
    • Added cooperative network-server processing for compatible platforms.
  • Bug Fixes

    • Improved Wi-Fi state consistency across RP2350W and ESP32 implementations.
    • Restricted ESP32 Wi-Fi code to supported platforms.
  • Chores

    • Updated the pinned build tooling version.

@coderabbitai

coderabbitai Bot commented Aug 6, 2026 •

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 98200237-e695-44db-8930-85d9ebe200b8

📥 Commits

Reviewing files that changed from the base of the PR and between b2a1344 and 7a90965.

📒 Files selected for processing (7)
  • ci/tests/test_rp2350w_board_config.py
  • examples/AutoResearch/AutoResearch.ino
  • examples/AutoResearch/AutoResearchNet.cpp
  • examples/AutoResearch/AutoResearchNet.h
  • pyproject.toml
  • src/platforms/arm/rp/wifi_rp.cpp.hpp
  • src/platforms/esp/32/net/wifi_esp32.cpp.hpp

📝 Walkthrough

Walkthrough

The PR centralizes WiFi state through fl::Singleton<WifiState>, scopes ESP32 WiFi compilation, adds RP2350W CYW43 HTTP peer networking, wires cooperative polling into AutoResearch, updates validation tests, and pins fbuild to 2.5.10.

Changes

WiFi and AutoResearch networking

Layer / File(s) Summary
Centralized WiFi singleton state
src/platforms/arm/rp/wifi_rp.cpp.hpp, src/platforms/esp/32/net/wifi_esp32.cpp.hpp
RP and ESP32 WiFi paths now read and update singleton-managed WifiState. ESP32 compilation requires FL_IS_ESP32.
RP2350W AutoResearch HTTP peer
examples/AutoResearch/AutoResearchNet.h, examples/AutoResearch/AutoResearchNet.cpp
Adds pollNetServer(), CYW43 server and client handling, outbound HTTP checks, route responses, cleanup, and fallback no-op behavior.
Sketch-loop polling integration
examples/AutoResearch/AutoResearch.ino
The sketch calls pollNetServer() after asynchronous task processing.
RP2350W networking validation
ci/tests/test_rp2350w_board_config.py
Tests verify singleton usage, ESP32 scoping, CYW43 guards, HTTP peer APIs, and polling wiring.

Build dependency pin

Layer / File(s) Summary
fbuild pin update
pyproject.toml
Updates the required fbuild version to 2.5.10 and records related pin-history entries.

Estimated code review effort: 4 (Complex) | ~45 minutes

Possibly related issues

Possibly related PRs

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/rp2350w-autoresearch-http-peer

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@zackees

zackees commented Aug 6, 2026

Copy link
Copy Markdown
Member Author

Superseded by a rebased follow-up branch after #3843 landed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant