espradio: add ESP32 BLE support using espradio VHCI transport - #464
Draft
deadprogram wants to merge 2 commits into
Draft
espradio: add ESP32 BLE support using espradio VHCI transport#464deadprogram wants to merge 2 commits into
deadprogram wants to merge 2 commits into
Conversation
marcofeltmann
suggested changes
Jul 29, 2026
marcofeltmann
left a comment
There was a problem hiding this comment.
Local build with v1.24.4 but github workflow on macos with v1.25.0 seems odd, better sync the versions.
| uses: actions/setup-go@v6 | ||
| with: | ||
| go-version: '1.23.12' | ||
| go-version: '~1.25.0' |
There was a problem hiding this comment.
Differs from go.mod version v1.24.4
Maybe sync via
go-version-file: 'go.mod'
Member
Author
There was a problem hiding this comment.
Good idea! Of course I had to make a change to the go.mod file as a result, it seems? Waiting on the build...
Member
Author
There was a problem hiding this comment.
Ok now I think I have it correct.
Signed-off-by: deadprogram <[email protected]>
Member
Author
|
Test failure until the next TinyGo release, since this repo builds that use the current release, but this PR needs the upcoming one. |
Adds a new `espradio` build tag that wires the existing HCI stack up to the ESP32's virtual HCI controller via tinygo.org/x/espradio. The new Adapter calls espradio.BLEInit() and hands a VHCI-backed transport to newBLEStack(); for WiFi+BLE co-existence, espradio.Enable() should be called first. The shared HCI implementation files pick up the espradio build tag, and go.mod is updated for the espradio and drivers dependencies. Signed-off-by: deadprogram <[email protected]>
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.
Adds a new
espradiobuild tag that wires the existing HCI stack up to the ESP32's virtual HCI controller via tinygo.org/x/espradio. The new Adapter calls espradio.BLEInit() and hands a VHCI-backed transport to newBLEStack(); for WiFi+BLE co-existence, espradio.Enable() should be called first.The shared HCI implementation files pick up the espradio build tag, and go.mod is updated for the espradio and drivers dependencies.
Works on ESP32C3 for both central and advertiser roles!
Requires that both tinygo-org/espradio#58 and tinygo-org/espradio#59 be merged, which is why this is in draft. It also requires the current
devbranch of TinyGo.