-
Notifications
You must be signed in to change notification settings - Fork 516
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
Standard Firmata through websockets #456
base: main
Are you sure you want to change the base?
Conversation
Can you update this PR to exclude all the changes that involve: |
@soundanalogous This PR is updated |
Had some time to think more about this proposal. I definitely like the idea of websocket support for Firmata and have pondered it several times over the past few years. I even created a Firmata client library that relied on websockets (via a serial to websocket server). Historically we have not included architecture specific example with Firmata. I think this proposal is off to a good start, but what I would like to see is support (or at least a plan) for additional boards such as some of the newer Arduino WiFi boards (such as the Nano 33 IoT and MKR WiFi 1010) which should have enough RAM and high enough clock speeds to perform well with a websocket implementation. |
Do you think of a particular PAL¹ for websockets, or should we make a new one with specific names ?
and a write function (binary? text? both? data, len) Underlying protocol consideration (ping, ...) would be left to the PAL implementer. ¹ Protocol Abstraction Layer |
Yeah, something like we used for BLEStream as an abstraction layer that works with different BLE libraries. |
That's a stream without events. |
Websockets allow a WiFi-enabled Firmata device to be natively controlled by a web browser.
An example is provided:
(sorry not to be an html5 expert)
This PR is used for bromagosa/Snap4Arduino#297
This PR relies on #455(edited)