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

Problem with GPIO / pinMode #29

Open
jadonk opened this issue Apr 25, 2018 · 2 comments
Open

Problem with GPIO / pinMode #29

jadonk opened this issue Apr 25, 2018 · 2 comments

Comments

@jadonk
Copy link
Member

jadonk commented Apr 25, 2018

From @jukkaaakula on August 22, 2014 12:12

Hi

I use
b.pinMode( outpin[j], b.OUTPUT , 7, 'pullup', 'fast', function (x) {} );

where outpin[j] is e.g. P8_31 or almost whatever.

I get this:

/usr/local/lib/node_modules/bonescript/index.js:161
if(typeof resp.err != 'undefined') {
^
TypeError: Cannot read property 'err' of undefined
at Object.f.pinMode (/usr/local/lib/node_modules/bonescript/index.js:161:19)
at Object.event [as /stream](/home/debian/nodeSofta/requestHandlers.js:287: 19)
at route (/home/debian/nodeSofta/router.js:4:25)
at IncomingMessage. (/home/debian/nodeSofta/server.js:18:13)
at IncomingMessage.EventEmitter.emit (events.js:92:17)
at _stream_readable.js:920:16
at process._tickCallback (node.js:415:13)

Actually even for simpler versions I get the same message. E.g. for

            b.pinMode( outpin[j], b.OUTPUT );

Beaglebone version is 2.4. OS was Debian with node.js 10.*

Copied from original issue: jadonk#93

@jadonk
Copy link
Member Author

jadonk commented Apr 25, 2018

From @adityapatadia on September 15, 2014 7:39

Try https://github.com/theoctal/octalbonescript It is fork of bonescript with a lot of improvements.

@vaishnavachath
Copy link

This issue does not occur with the latest version , tested on BeagleBone Black with
Linux beaglebone 4.9.88-ti-r111 and BeagleBoard.org Debian Image 2018-03-05

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

2 participants