Hi there!
I’m looking to subscribe to events that’s being triggered by a specific set of devices (where sets of devices can >100, thus not creating unique event for each set of devices). What’s a bit tricky is that I don’t know what devices that is part of each set, since it’s defined on the server side that the cloud is communicating with. What I’ve done up to this point is only subscribe to the own devices requests/responses using
"responseTopic": "hook-response/eventName_{{SPARK_CORE_ID}}"
What I now want to do is somehow ask the server what devices that is included in the same set of devices as the device triggering an event, so I’m able to subscribe to these specific devices and their events.
My spontaneous guess would be that every device that comes online sends their unique SPARK_CORE_ID to the server, and when a new device that belongs to the same set comes online send a request to the server, that as a response says “Hello there, I got these X number of devices online too, belonging to your set, with Y and Z SPARK_CORE_ID’s”. And from there add more devices to my responseTopic. This feels a little bit cumbersome though so I’m wondering if there’s any better way of achieving the same result?
Thanks once again to this supportive and awesome community