PJCzx / homebridge-thermostat

Supports thermostat devices on HomeBridge Platform
Apache License 2.0
34 stars 71 forks source link

Add handle of Http Status Code #47

Closed macjl closed 4 years ago

macjl commented 4 years ago

Hello,

I've added the handle of http status code. If the code is greater than 300, the request is processed as an error.

Please review my code. I' not sure about the argument to pass to the 'callback' function in that case.

Regards,

PJCzx commented 4 years ago

Thx @macjl for code 300 managment. Code is now on npm homebridge-thermostat@0.0.51