Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add binary sub protocol to allow communication with websockify. #4303

Merged

Conversation

CodinMoldovanu
Copy link
Contributor

@CodinMoldovanu CodinMoldovanu commented Jan 15, 2025

This removes the protocol definition when opening an WebSocket for connecting to the FC boards in the configurator. Currently we require using Websockify to proxy requests from localhost to the FC on the network, Websockify does not support (at least on the latest branch) this protocol, nor is it specified by IANA.

This has been tested on two boards and works for connecting to it - it does not however work for flashing (specifically detecting at the very least).

EDIT:

Added binary as a subprotocol as well since that is at least one of the ones accepted by websockify.

Reference:

Copy link

netlify bot commented Jan 15, 2025

Deploy Preview for origin-betaflight-app ready!

Name Link
🔨 Latest commit b3e8244
🔍 Latest deploy log https://app.netlify.com/sites/origin-betaflight-app/deploys/6788421b019059000853e8bb
😎 Deploy Preview https://deploy-preview-4303.dev.app.betaflight.com
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@haslinghuis haslinghuis changed the title Remove wsSerial protocol to allow communication with websockify. Add binary sub protocol to allow communication with websockify. Jan 15, 2025
@haslinghuis haslinghuis merged commit b5ec4c3 into betaflight:master Jan 16, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

3 participants