Device Retrieval and Information
Pre-requisite: The user has to be signed in to perform the following operations.
Get all devices in a space
To get the list of devices, The following method can be used:
spaceId(required): The space ID of the devices.
Factory.deviceService.devices(_ spaceId: String) -> IVPublisher<ListDataModel<DeviceModel>>
Get a specific device in a space
To get the device information, The following method can be used:
spaceId(required): The space ID of the device.deviceId(required): The device ID.
Factory.deviceService.device(spaceId: String, deviceId: String) -> IVPublisher<DeviceModel>
Get the device model information
To get the device model information, The following method can be used:
spaceId(required): The space ID of the device.deviceId(required): The device ID.
Factory.deviceService.deviceModelInfo(spaceId: String, deviceId: String) -> IVPublisher<DeviceModelInfo>