mirror of
https://github.com/mtan93/SmartThingsPublic.git
synced 2026-03-15 13:10:51 +00:00
I did a couple of things to make this more reliable: 1. I re-fetch the authorization token every 5 minutes 2. If a request fails, I again re-try to fetch the token and re-submit the request 3. I try again on 400 errors in addition to 500 and 401 errors. Code is all open source under Apache 2.0 license hosted at github at https://github.com/mmacaula/tcp-bulbs