Device Cloud Settings
Pre-requisite The user has to be signed in to perform the following operations.
Get Cloud settings for a device
To get the cloud settings for a device, The following method can be used:
spaceId(required): The space ID of the device.deviceId(required): The device ID.
Factory.deviceService.getDeviceCloudSettings(spaceId: String, deviceId: String) -> IVPublisher<DeviceCloudSettings>
Update AI cloud settings for a device
To update the AI cloud settings for a device, The following method can be used:
spaceId(required): The space ID of the device.deviceId(required): The device ID.request(required): The request object containing the AI cloud settings to be updated.wakeup(required): Bool(If device is battery operated)
Factory.deviceService.updateDeviceCloudAISettings(spaceId: String, deviceId: String, wakeup: Bool, request: EventDetectionSettingsRequest?) -> IVPublisher<DeviceCloudSettings>
Update Notification cloud Settings for a Device
To update the notification cloud settings for a device, The following method can be used:
spaceId(required): The space ID of the device.deviceId(required): The device ID.request(required): The request object containing the notification cloud settings to be updated.wakeup(required): Bool(If device is battery operated)
Factory.deviceService.updateDeviceCloudNotificationsSettings(spaceId: String, deviceId: String, wakeup: Bool, request: NotificationSettingsRequest?) -> IVPublisher<DeviceCloudSettings>
Get Activity Zones for all the devices in a space
To get the activity zones for all the devices in a space, The following method can be used:
spaceId(required): The space ID of the devices.
Factory.deviceService.getProSecurityProfileDevicesActivityZone(spaceId: String) -> IVPublisher<ActivityZoneModel>