Pairing Session Keys

Pre-requisite: The user has to be signed in to perform the following operations.


Create a pairing session key

To create a pairing session key, The following method can be used:

  • spaceId (required): The space ID of the device.
  • request (required): PairingSessionKeyRequesttimezoneSettings is required; sessionType defaults to .other, use .fourG(deviceId:) for a cellular camera.
Factory.spaceService.createPairingSessionKey(spaceId: String, request: PairingSessionKeyRequest) -> IVPublisher<PairingSessionKeyModel>

Get the pairing session status

To poll the status of a pairing session, The following method can be used:

  • spaceId (required): The space ID of the device.
  • sessionKey (required): The pairing session key.
Factory.spaceService.getPairingSessionStatus(spaceId: String, sessionKey: String) -> IVPublisher<PairingSessionStatusModel>