joeferner / node-pi-watchdog

Node wrapper for Raspberry Pi BCM2835 Watchdog
1 stars 3 forks source link

ioctl error when testing example.js #1

Open pkese opened 9 years ago

pkese commented 9 years ago

I get an ioctl error when running the example code. Any ideas?

# node ./example.js
{ _fd: null,
  _fileName: '/dev/watchdog',
  _open: [Function],
  _ensureOpen: [Function],
  getTimeout: [Function],
  setTimeout: [Function],
  heartbeat: [Function],
  disable: [Function] }
getting timeout
/home/peter/work/toplota/node_modules/pi-watchdog/node_modules/ioctl/index.js:9
        throw e;
              ^
Error: ioctl -25
    at module.exports (/home/peter/work/toplota/node_modules/pi-watchdog/node_modules/ioctl/index.js:6:17)
    at /home/peter/work/toplota/node_modules/pi-watchdog/index.js:44:15
    at /home/peter/work/toplota/node_modules/pi-watchdog/index.js:37:19
    at /home/peter/work/toplota/node_modules/pi-watchdog/index.js:23:14
    at FSReqWrap.oncomplete (fs.js:95:15)