JamesBarwell / rpi-gpio.js

Control Raspberry Pi GPIO pins with node.js
MIT License
657 stars 116 forks source link

Error while read PIN state #83

Closed Votyer closed 6 years ago

Votyer commented 6 years ago

I'm getting the follwoing error when try to read the PIN value Cannot read property 'indexOf' of undefined

my code is the following

this.PINValue = function (pin, callback) {

    console.log("Pin to read=>"+ pin);

    gpio.read(pin, callback);
}
Weissnix4711 commented 3 years ago

Solution?