karbassi / netatmo

A node.js module to hook into the netatmo API.
MIT License
57 stars 46 forks source link

streamlined error handling and added timeout option #30

Open sowo opened 7 years ago

sowo commented 7 years ago

Error handling has been streamlined so that callbacks are invoked in error cases in every method.

A request timeout option has been added for backend requests. A timeout passed to the constructor is used as the global default while timeouts set in method options are only used in the method call-

karbassi commented 7 years ago

@sowo can you clean up this commit to show only what needs to be changed? Looking at it, it seems like the whole file changed.

sowo commented 7 years ago

@karbassi Sry, was working on Windows and didn't set the autocrlf. I hope you can see the changes now in commt 6371f8b.