Tuya iOS Smart Life App SDK 5.15.0
<WTLDeviceAttestationDelegate> Protocol Reference

#import <WTLDeviceAttestationDelegate.h>

Inheritance diagram for <WTLDeviceAttestationDelegate>:

Instance Methods

(void) - deviceAttestationCompletedForController:opaqueDeviceHandle:attestationDeviceInfo:error:
 
(void) - deviceAttestationFailedForController:opaqueDeviceHandle:error:
 
(void) - deviceAttestation:completedForDevice:attestationDeviceInfo:error:
 
(void) - deviceAttestation:failedForDevice:error:
 

Detailed Description

The protocol definition for the WTLDeviceAttestationDelegate.

Definition at line 49 of file WTLDeviceAttestationDelegate.h.

Method Documentation

◆ deviceAttestation:completedForDevice:attestationDeviceInfo:error:

- (void) deviceAttestation: (WTLDeviceController *)  controller
completedForDevice: (void *)  device
attestationDeviceInfo: (WTLDeviceAttestationDeviceInfo *)  attestationDeviceInfo
error: ("Please implement deviceAttestationCompletedForController:opaqueDeviceHandle:attestationDeviceInfo:error:") 
(macos(13.0, 13.3)) 
(watchos(9.1, 9.4)) 
(tvos(16.1, 16.4))  WTL_DEPRECATED 
optional

◆ deviceAttestation:failedForDevice:error:

- (void) deviceAttestation: (WTLDeviceController *)  controller
failedForDevice: (void *)  device
error: ("Please implement deviceAttestationFailedForController:opaqueDeviceHandle:error:") 
(macos(13.0, 13.3)) 
(watchos(9.1, 9.4)) 
(tvos(16.1, 16.4))  WTL_DEPRECATED 
optional

◆ deviceAttestationCompletedForController:opaqueDeviceHandle:attestationDeviceInfo:error:

- (void) deviceAttestationCompletedForController: (WTLDeviceController *)  controller
opaqueDeviceHandle: (void *)  opaqueDeviceHandle
attestationDeviceInfo: (WTLDeviceAttestationDeviceInfo *)  attestationDeviceInfo
error: (macos(13.3)) 
(watchos(9.4)) 
(tvos(16.4))  API_AVAILABLE 
optional

Only one of the following delegate callbacks should be implemented.

If -deviceAttestationFailedForController:opaqueDeviceHandle:error: is implemented, then it will be called when device attestation fails, and the client can decide to continue or stop the commissioning.

If -deviceAttestationCompletedForController:opaqueDeviceHandle:attestationDeviceInfo:error: is implemented, then it will always be called when device attestation completes. Notify the delegate when device attestation completed with device info for additional verification. If this callback is implemented, continueCommissioningDevice on WTLDeviceController is expected to be called if commisioning should continue.

This allows the delegate to stop commissioning after examining the device info (DAC, PAI, CD).

Parameters
controllerController corresponding to the commissioning process
opaqueDeviceHandleHandle of device being commissioned
attestationDeviceInfoAttestation information for the device
errorNSError representing the error code on attestation failure. Nil if success.

◆ deviceAttestationFailedForController:opaqueDeviceHandle:error:

- (void) deviceAttestationFailedForController: (WTLDeviceController *)  controller
opaqueDeviceHandle: (void *)  opaqueDeviceHandle
error: (macos(13.3)) 
(watchos(9.4)) 
(tvos(16.4))  API_AVAILABLE 
optional

Notify the delegate when device attestation fails. If this callback is implemented, continueCommissioningDevice on WTLDeviceController is expected to be called if commisioning should continue.

Parameters
controllerController corresponding to the commissioning process
opaqueDeviceHandleHandle of device being commissioned
errorNSError representing the error code for the failure

The documentation for this protocol was generated from the following file: