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:
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!
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
anddigitalWrite
are working fine. I encounter issues withserialOpen
when I do:This returns the error:
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!