Device Maintenance
Pre-requisite: The user has to be signed in to perform the following operations.
Format SD Card
To format the SD card of the device, The following method can be used:
spaceId(required): The space ID of the device.deviceId(required): The device ID.
Factory.deviceService.formatSDCard(spaceId: String, deviceId: String) -> IVPublisher<Void>
Delete Device
To delete the device, The following method can be used:
spaceId(required): The space ID of the device.deviceId(required): The device ID.
Factory.deviceService.deleteDevice(spaceId: String, deviceId: String, wakeup: Bool) -> IVPublisher<Void>
Update OTA Schedule Settings for a Device
To update OTA schedule configuration 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.updateOTAScheduleSettings(
spaceId: String,
deviceId: String,
wakeup: Bool,
request: OTASchedule?
) -> IVPublisher<DeviceCloudSettings>