Hi,
the method GetDevicesUsingStorage of class VideoOS.Platform.ConfigurationItems.Storage return an ClassCollectionServerTask object that no contains information.
How can I get the number of devices that use the storage?
Even the ConfigAPIClient example does not return this information
I tried SDK 2019 R1 and XCO 2017R3 and 2018R3
Thanks in advance
Having not tried this myself, it was a headscratcher for me as well, but I managed to get the data following these steps:
- Call GetDevicesUsingStorage
- The result is of ItemType = InvokeInfo meaning Configuration API expects you to fill in some of the Properties and then invoke the method again. In this case, the Properties array is empty and there is no further information needed. Really it should just start processing your request, but it looks like that’s not how it’s designed at the moment. You just have to invoke the GetDevicesUsingStorage method off of this object
- It should take slightly longer to get a response now, and that response will be of ItemType = InvokeResult and the ChildrenFilled property will be True
- You can now enumerate through the Children property which is an array of ConfigurationItem where the ItemType can be Camera, Microphone, Speaker, or Metadata.