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

FIRMATA WIFI ESP8266 #12

Open
rahul-thakoor opened this issue May 2, 2016 · 10 comments
Open

FIRMATA WIFI ESP8266 #12

rahul-thakoor opened this issue May 2, 2016 · 10 comments

Comments

@rahul-thakoor
Copy link

hey there, is there a way to use this library with esp8266 running wifi firmata? I mean not using serial but instead use etherport client?

@sarahghp
Copy link
Owner

sarahghp commented May 5, 2016

There is not currently. I would like to add it — perhaps over the summer — but graduate school has made development on this slow. I would also love a PR for this. hint, hint

@Wqrld
Copy link

Wqrld commented Apr 7, 2017

Any progress? I would also really want to control it from wifi or lan or bluettooth whatever is the easiest for you.

@Wqrld
Copy link

Wqrld commented Jul 21, 2017

this project is kinda dead, you could try to use something like p5.dom and johnny five. It would be a bit harder but that's the way it is

@sarahghp
Copy link
Owner

Yes, I am pretty taken with other things these days. PRs welcome, tho.

@Wqrld
Copy link

Wqrld commented Jul 21, 2017

i did a little bit of research and it seems like the only thing we need to do is to use etherport.

var Etherport = require("etherport");
var Board = require("firmata");
var board = new Board(new Etherport(3030));

board.on("ready", () => {
  // esp is ready to communicate
});

That should be all we need to do, appart from making a way to select one of the two

edit: the etherport is saying it does only support ethernet but according to firmata.js it isn't

@Wqrld
Copy link

Wqrld commented Jul 21, 2017

i don't know how johnny-five code is related to normal firmata but maybe we can also do it like this:

var EtherPortClient = require("etherport-client").EtherPortClient;
var five = require('johnny-five');
var board = new five.Board({
 port: new EtherPortClient({
   host: "192.168.0.221",
   port: 3030
 }),
 timeout: 1e5,
 repl: false
});

@Wqrld
Copy link

Wqrld commented Jul 21, 2017

i will try to test it myself once i have an esp2866 but that will take some time.

@Wqrld
Copy link

Wqrld commented Jul 21, 2017

this should do the trick but we need to add a dependency for etherport and we need a good way to change between serial and wifi.

@Wqrld
Copy link

Wqrld commented Jul 21, 2017

are you okay with a comment "do this do enable wifi" or do you want a dedicated setting for the server?

edit: if normal etherport doesn't work i/you should try etherport-client

@sarahghp
Copy link
Owner

Thanks for looking into all this! I think it would be better to let people toggle between wifi and serialport with an optional flag. Once you have a chance to test that it works, open the PR and I can merge and update the new version on npm?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants