-
Notifications
You must be signed in to change notification settings - Fork 593
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
Node-red crashed after connect Arduino and using this module #920
Comments
I can confirm this bug. To reproduce:
Node-red will crash. Solution:
Probably other modes + invalid pin numbers should be checked too. |
Much improved error handling now in v1.1.0 |
@dceejay Great to hear! |
@dceejay Is there any way the new 1.1.0 version is getting uploaded to NPM? |
Problem 1 :at if (node.pin && !isNaN(node.pin) && node.pin >=0 && node.pin <= 20) {
...
The Result is:I can not use all the ports, including built-in LED |
IMHO the whole naming of the module is wrong. node-red-node-firmata |
Quick workaround is to patch that line for yourself... |
I agree ! We should. This should be the universal communication protocol that should be on the main menu of NR's website, compatible with all boards supporting firmata. (not limited to arduino, supporting extended capabilities, etc.)
I'm still trying to figure out, how to get values of the pins, previously set by the
(PS: I "just" have to test it, but always getting confused about npm link and rebuild ... ) |
You shouldn't need either link or rebuild. If you have the code in a directory then from your .node-red user directory just npm install {path to directory} will install it. You only need to do that once. It will create the necessary links for you. |
Things that are fixed / added:
|
No need for renaming unless you plan to release a new node. Great if we can fix this one with v1.2 (or 1.3 etc) |
The goal would be to have a universal name that refers to all boards running Firmata, not just "Arduino". There are many board types available:
So, the name "Arduino" is misleading. |
Which node are you reporting an issue on?
node-red-node-arduino
What are the steps to reproduce?
What happens?
Node-red crashed with error:
TypeError: cannot set properties of undefined (setting 'pinMode') at Firmata.pinMode (/root/.node-red/node_modules/firmata-io/lib/firmata.js:947:27)
What do you expect to happen?
Successful read from pin
Please tell us about your environment:
The text was updated successfully, but these errors were encountered: