ESPDeviceConnectionDelegate

public protocol ESPDeviceConnectionDelegate

Class needs to conform to ESPDeviceConnectionDelegate protocol when trying to establish a connection.

  • Get Proof of possession for an ESPDevice from object conforming ESPDeviceConnectionDelegate protocol. POP is needed when security scheme is sec1 or sec2. For other security scheme return nil in completionHandler.

    Declaration

    Swift

    func getProofOfPossesion(forDevice: ESPDevice, completionHandler: @escaping (String) -> Void)
  • Get username for an ESPDevice from object conforming ESPDeviceConnectionDelegate protocol. Client needs to handle this delegate in case security scheme is sec2. For other schemes return nil for username.

    Declaration

    Swift

    func getUsername(forDevice: ESPDevice, completionHandler: @escaping (_ username: String?) -> Void)