Skip to content

direct websocket support between web platform and wireless firmata #297

Closed
@d-a-v

Description

@d-a-v

Hello,

Tthis is not a feature-request, I am trying to implement it myself.

I know it is possible to use the web platform with some sort of bridge hardware to reach a network-enabled arduino device.

I would like to make things more simple, by using a websocket-enabled firmata arduino device, and reach it directly from the web browser (any browser would then work, not only chrom*).

This will allow to make things work out of the box with only

  • an arduino device flashed with standard firmata on websockets
  • a web browser

I have the websocket-enabled firmata arduino part which is working (and a proof-of-concept-javascript webpage to switch on/off the built-in-led).

I am now looking at snap4arduino. I have so far willingly been using firefox.
Build for chromium starts, Snap is working, and I can see the arduino menu.
I modified the arduino menu to be able to select and start a websocket link which connects to the network device.

However the firmata interpreter is enclosed in crx/bundle.js that is accessed through an intermediary and internal API probably through chromium plugin mechanism.

There are also 6 firmata.js files in the repository, namely

./src/platforms/web/chromeos/root/firmata.js
./src/platforms/mobile/android/root/mobile/firmata.js
./environments/web/chromeos/node_modules/firmata/lib/firmata.js
./environments/desktop/node_modules/firmata/lib/firmata.js
./environments/embedded/cli/node_modules/firmata/lib/firmata.js
./environments/embedded/cli/node_modules/firmata/examples/ssfirmata.js

Before I dive into them, is there any recommendation on which one to use, or if using crx/bundle.js with its pure javascript API is possible or wise.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions