-
Notifications
You must be signed in to change notification settings - Fork 11
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
Missing io.SERIAL_PORT_IDs implementation? #23
Comments
Wow... that's weird. It is totally missing. I can't even find a time in github history when it existed and this code is over three years old... but it worked... I've used it. I'll get back to the postmortem later. In the meantime, I'll get a fix for you ASAP. I don't have a GPS or other serial device I can test with (or a T2 for that matter). If I send you a tweak for tessel-io/lib/index.js can you try it out for me? |
If you're in a hurry, just change this line in node_modules/johnny-five/lib/gps.js state.portId = opts.serialPort || opts.portId || opts.port || opts.bus || this.io.SERIAL_PORT_IDs.DEFAULT; to state.portId = opts.serialPort || opts.portId || opts.port || opts.bus; and make sure you specify I need to noodle over wether this should be fixed in Johnny-Five or tessel-io. |
Excellent, thanks for the help @dtex ! |
@dtex are there any big benefits of using |
There is no black magic in the J5 GPS code. Configuration is a little easier and having the GPS be an event emitter is helpful. Also, you don't have to worry about parsing the NMEA sentences yourself. |
I got the exact same issue. Your quick fix solved it but now I'm getting this error here:
@dtex Do you have any idea? My code is super basic:
|
io.SERIAL_PORT_IDs
is returning undefined for me. Is this supposed to be implemented?The text was updated successfully, but these errors were encountered: