I’m writing a device driver to communicate between the SmartThings Hub and and an Arduino Mega. If, for some reason, the SmartThings Hub is restarted I’d like my device driver to, for lack of a better term, poll the Arduino board for it’s current status. I’m not looking for a continuous poll, just once at start up. The device driver would send a message to the Arduino which would respond with a series of status messages that would get everything to a normalized state.
I’ve tried reading through all the documentation and related posts I can find but haven’t found anything that seems to directly relate to this topic.
Is there a method I could define that gets called with the device driver gets initiated by the SmartThings Hub?
Or, is there a capability I could define in my device driver that would help me accomplish this?
Or, some other approach?
I’m brand new to coding in Groovy so please be gentle:-)
Thanks in advance for the help