njh / node-owfs

A node.js client library for the owserver protocol in owfs
https://www.npmjs.com/package/owfs
MIT License
10 stars 4 forks source link

Attempting to read devices that do not respond #4

Closed turnernet closed 10 years ago

turnernet commented 10 years ago

Hi,

In my application occasionally my devices are not responding to read requests (bad wiring I think or someone unplugs a device).

The read callback does not execute (no error parameter either to check if it did). I see this on the console:

[TypeError: Cannot read property 'payload' of undefined]

I would really like if the callback always get's called, with an err parameter to check.

Thanks!

Todd

benediktarnold commented 10 years ago

Today I released 0.1.0 with node style error first callbacks.