Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Added detection for NW.js version 0.13+ #108
Since v0.13, NW.js fully supports the
Since native modules need to be specifically recompiled for NW.js, this makes it much easier to use the serial port in that environment.
referenced this pull request
Feb 1, 2016
Yep, that's a better syntax. By the way, Rick, if this pull request is merged in, I will submit a very similar one for Johnny-Five.
If both Firmata and Johnny-Five checked for the presence of NW.js v0.13+ and loaded
The current trouble with node-serialport within NW.js is that the module must be specifically recompiled for NW.js in order to run properly. This is prohibitively complicated for beginners. However, with version 0.13, NW.js added full support for
I tested browser-serialport + firmata + johnny-five + NW.js and it works flawlessly. To me, this is a kickass combination for physical computing and robotics.
With all of the transports I've been adding to Firmata (on the Arduino side), I wonder if it's worth it to rethink how node-firmata is initialized. I think it makes sense to default to node-serialport for backwards compatibility, but we should make it easy for people to use Ethernet, WiFi, BLE, and browser serial as well.
I am not suggesting that the default behaviour be changed. In fact, the change I proposed is quite the opposite. The default module remains node-serialport and in the case where
It's a small check with a low-footprint that could bring huge benefits to those who want to build a GUI for their project.