redloro / smartthings

SmartThings home automation services, apps and devices
Apache License 2.0
116 stars 194 forks source link

Moved setInterval to be outside of init #8

Closed peaches closed 7 years ago

peaches commented 7 years ago

The setInterval to reset the connection was inside of the init function so every time that it triggers init, setInterval will be registered again. This adds a new call to init once every minute, which is potentially detrimental.

peaches commented 7 years ago

Ignore, I misread the closing curly brace :).