tuyapi
tuyapi copied to clipboard
Device Reconnect
It would be nice to add an option in the constructor for Reconnect on "error" or "disconnected" states!
If you're using the event-based API I believe the current approach is to let you handle this yourself. I would be willing to accept a PR that attempts to reconnect after a disconnected event.