Device Configuration and Update
Pre-requisite: The user has to be signed in to perform the following operations.
Update Device Information
To update the device information, The following method can be used:
spaceId(required): The space ID of the device.deviceId(required): The device ID.request(optional): The request object containing the updated device information.
Factory.deviceService.updateDevice(spaceId: String, deviceId: String, request: UpdateDeviceRequest?) -> IVPublisher<DeviceModel>
Update Device Settings
To update the device settings, The following method can be used:
spaceId(required): The space ID of the device.deviceId(required): The device ID.request(optional): The request object containing the updated device settings.wakeup(required): Bool(If device is battery operated)
Factory.deviceService.updateDeviceSettings(spaceId: String, deviceId: String, wakeup: Bool, request: UpdateDeviceSettingRequestModel?) -> IVPublisher<DeviceSettingModel>
Toggle Device Spotlight
To switch the camera’s spotlight on or off, The following method can be used:
spaceId(required): The space ID of the device.deviceId(required): The device ID.request(optional):UpdateDeviceLightSettingRequestModel(light:)—trueto switch the light on,falseto switch it off.wakeup(required): Bool(If device is battery operated)
Factory.deviceService.updateDeviceLightSetting(spaceId: String, deviceId: String, wakeup: Bool, request: UpdateDeviceLightSettingRequestModel?) -> IVPublisher<DeviceSettingModel>
Create Two Way Call Event
To create two way call event, The following method can be used:
spaceId(required): The space ID of the device.deviceId(required): The device ID.request(optional): The request object containing the Two way call event information.
Factory.deviceService.createTwoWayCallEvent(
spaceId: String,
deviceId: String,
request: TwoWayCallEventRequest?
) -> IVPublisher<TwoWayCallEventModel>
Update Two Way Call Status
To update two way call status, The following method can be used:
spaceId(required): The space ID of the device.deviceId(required): The device ID.callId(required): The call ID.request(optional): The request object containing the Two way call event information.
Factory.deviceService.updateTwoWayCallStatus(
spaceId: String,
deviceId: String,
callId: String,
request: TwoWayCallStatusRequest?
) -> IVPublisher<Void>
Product-specific settings
Settings that only exist on one product line are documented with that product:
| Setting | Documented under |
|---|---|
| Hunting / embargo mode and quiet hours | Trail → Hunting / Embargo Mode |
| GPS location | Trail → GPS Location |
| Timelapse | Trail → Timelapse |
| Network operator (4G cameras) | Trail → Cellular / 4G |
| Lullaby player | Baby → Lullaby |