when running the following code repeatedly (setting the GPIO pin to 1 -relay off multiple times), occationally i hear the relay click and get a momentary contact on. I also see a GPIO-Admin: could not flush data to /sys/class/gpio/export: device or resource busy. I am using a RPb+ and sainsmart 8ch relay board. The momentary contact on when the relay is already off is the most problematic.
gpio.open(pin,'output', function(err) {
gpio.write(pin,highLow,function() {
gpio.close(pin);
});
});
when running the following code repeatedly (setting the GPIO pin to 1 -relay off multiple times), occationally i hear the relay click and get a momentary contact on. I also see a GPIO-Admin: could not flush data to /sys/class/gpio/export: device or resource busy. I am using a RPb+ and sainsmart 8ch relay board. The momentary contact on when the relay is already off is the most problematic.
gpio.open(pin,'output', function(err) {
gpio.write(pin,highLow,function() {
gpio.close(pin);
});
});