octoblu / meshblu

Meshblu is a cross-protocol IoT machine-to-machine messaging system.
https://meshblu.readme.io/
MIT License
816 stars 181 forks source link

Question: Is it possible to fetch an array of devices based on a number of UUIDs? #107

Closed SamuelToh closed 8 years ago

SamuelToh commented 8 years ago

Hi,

I was scanning through the meshblu documentation amd Readme.md file for examples on how I can query devices and subscribing to their events through a set of UUIDs and it seems like there is no way to do this? Please correct me if I am wrong on this.

Not particularly important as I have got a work around for it by simply fetching all devices owned by the owner and then manually filtering through them.

Cheers, Sam

chrismatthieu commented 8 years ago

We have an API endpoint called MyDevices (https://meshblu-http.readme.io/docs/mydevices). This endpoint returns all UUIDs that belong to an "owner" UUID. You could then iterate through this array and subscribe to each of the UUIDs.