Timelapse
Pre-requisite: The user has to be signed in to perform the following operations.
Timelapse capture is a cloud setting: the camera takes stills on its own cadence and the backend assembles them. It is switched with a single flag.
Update Device Timelapse Settings
To switch timelapse capture on or off, The following method can be used:
spaceId(required): The space ID of the device.deviceId(required): The device ID.wakeup(required): Whether to wake a battery camera so the change applies immediately.request(optional):EnableSettingsRequest(enabled:).
Factory.deviceService.updateDeviceTimelapseSettings(
spaceId: String,
deviceId: String,
wakeup: Bool,
request: EnableSettingsRequest?
) -> IVPublisher<DeviceCloudSettings>
The returned DeviceCloudSettings is the full cloud settings record, the same one Device Cloud Settings reads.