skip to Main Content
 self.connectedDevice = obj
 self.connectedDevice?.delegate = self
 self.connectedDevice?.setPairingType(DeviceServicePairingTypeMixed)
 self.connectedDevice?.connect()

Pairing Code Screen Not Shown on Connectable Device

How to show pairing code screen to smart TV connectable device? Connect SDK

2

Answers


  1. For showing pairing code screen on smart tv you can use socket in swift instead of using connectSDK. I have implement a full code for it to control smart tv devices with pairing code functionality.

    Login or Signup to reply.
  2. Ok Thank you for Reply,

    Now I am using socket from another library i am able to send pairing code to Smart TV, then we connect device using below code?

    for service in obj.services {
      if let objser = service as? DeviceService {
         print(objser.serviceName)
         objser.pair(withData: ["pincode" : "12CFFB"])
         objser.delegate = self
         objser.connect()
       } else {
         // Handle the case where the desired service is not available
       }
    }

    or any other code for pairing?

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search