Hello, first time posting, so I hope its to the correct area.
I've been looking at the plugins documentation, and several examples, both in the SDK and third party developers, however couldn't find an example of what I was looking for.
Can you subscribe to a device?
In the new scripts with Indigo 7.0 SDK it demonstrates new subscriber / broadcaster behaviour, however it seems to depend on a script continuously looping to detect whether or not a change has occurred since it last ran, then broadcasting it to anything that's listening.
In the 'Sensor.indigoPlugin' example it notes:
'If the sensor broadcasts out changes (or is just 1-way), then this runConcurrentThread() method can be deleted.'
The specific context is I'd like a motion sensor (type - FGMS001) to inform me when its triggered. I'd like to minimise the overhead by having a subscriber that gets told when somethings occurred, rather than having to continuously poll for it, I would assume it would also improve response times.
Is this possible? If so how? And is there any documentation that I've missed?
Thanks for looking,
Rich