What product/components do you use and which version/fix level are you on?
Cumulocity IOT
Is your question related to the free trial, or to a production (customer) instance?
customer
What are you trying to achieve? Please describe it in detail.
I am getting the managedobjectfilter like below. I want to get all the device’s managedobjects
I know there is an option to get all the pages and iterate through the pages.
InventoryFilter inventoryFilter = new InventoryFilter();
inventoryFilter.byFragmentType(IsDevice.class);
ManagedObjectCollection managedObjectsByFilter = inventoryApi.getManagedObjectsByFilter(inventoryFilter);
List allObjects = Lists.newArrayList(managedObjectsByFilter.get(2000).allPages());
How to use the managedObjectsByFilter.getNextPage(BaseCollectionRepresentation)
In this case how to instantiate BaseCollectionRepresentation? I tried like below and passed the baseCollectionRep inside getNextPage(). But am getting null in that case. I want to get all the available pages or anything more than 2000.
BaseCollectionRepresentation baseCollectionRep = new ManagedObjectCollectionRepresentation();
Kindly help.