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>