What is the best Way to Gather Vitals of multiple devices in ONE API Call?
I have many devices that I want to know if are online. My plan is to create a CRON job on my server to pings Particle’s Cloud API every two hours to verify devices are still active and connected.
I see the API device information’s ‘last_heard’ property in the response. That’s exactly what I’m looking for. But, I would like to gather that information for many devices instead of just one at a time. Otherwise, I’m just wasting needless bandwidth calls on both my servers and Particle’s servers.
There’s got to be a way to query multiple device information at once. Perhaps, getting all device info within a group or product?
Am I barking up the wrong tree? Is there a better way of doing this? I know I can send publishVitals and set a cadence. But it would much simpler on the server if I could ping Particle’s server for the info of all devices in a group/product.