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

serialOpen not working on Resin.io #181

Open
cSchubes opened this issue Oct 4, 2018 · 0 comments
Open

serialOpen not working on Resin.io #181

cSchubes opened this issue Oct 4, 2018 · 0 comments

Comments

@cSchubes
Copy link

cSchubes commented Oct 4, 2018

Hi,

I am trying to use Bonescript on a BeagleBone black running resinOS. I install it with yarn, and then import it using a typical require statement. Calls to pinMode and digitalWrite are working fine. I encounter issues with serialOpen when I do:

bonescript.serialOpen('/dev/tty04', { baudRate: 112500 });

This returns the error:

TypeError: Cannot read property 'path' of undefined
  at Object.newFunction [as serialOpen] (/usr/src/app/node_modules/bonescript/src/my.js:451:31)
  at Object.m.doOpen (/usr/src/app/node_modules/bonescript/src/serial.js:16:28

I took a look at the source and couldn't seem to figure out what was happening with the path property. I have tried different options, different ttys, and dropping the leading zero in the port to no avail. Any help is greatly appreciated!

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

1 participant