Tuya iOS Smart Life App SDK 5.15.0
ThingSmartMatterKitErrors.h
Go to the documentation of this file.
1//
2// ThingSmartMatterKitErrors.h
3// ThingSmartMatterKit
4//
5// Copyright (c) 2014-2021 Thing Inc. (https://developer.thing.com)
6//
7
8#ifndef ThingSmartMatterKitErrors_h
9#define ThingSmartMatterKitErrors_h
10
12typedef NS_ENUM(NSInteger, ThingSmartMatterKitError) {
13 // fetch nodeId from cloud failed
14 kThingSmartMatterKitErrorFetchNodeIdError = 3000,
15 // WIFI is not a support wifi
16 kThingSmartMatterKitErrorWIFINotSupport = 3001,
17 // WIFI ␈password incorrect
18 kThingSmartMatterKitErrorWIFIIncorrect = 3002,
19 // IP resloved error
20 kThingSmartMatterKitErrorMdnsResolvedError = 3003,
21 // Mdns scan timeout
22 kThingSmartMatterKitErrorDnsSDDiscoveryFailed = 3004,
23 //commission failed
24 kThingSmartMatterKitErrorCommissonFailed = 3005,
25 //thing device activity to cloud failed
26 kThingSmartMatterKitErrorActivityCloudFailed = 3006,
27 //fetch devicemodel for origin matter device failed
28 kThingSmartMatterKitErrorFetchMatterDeviceFailed = 3007,
29 //get thread network failed
30 kThingSmartMatterKitErrorTimeout = 3008,
31 //device not support for matter failed
32 kThingSmartMatterKitErrorDeviceNotSupport = 3009,
33 //acl failed
34 kThingSmartMatterKitErrorACLFailed = 3010,
35 //Pase failed
36 kThingSmartMatterKitErrorPaseSessionFailed = 3011,
37 //FabricInfo failed
38 kThingSmartMatterKitErrorFabricInfoFailed = 3012,
39 //Commonerror normal failed
40 kThingSmartMatterKitErrorCommonError = 3013,
41 //fetch passcode failed
42 kThingSmartMatterKitErrorFetchPassCodeFailed = 3014,
43 //get nil fabric
44 kThingSmartMatterKitErrorFabricNullInfo = 3015,
45 //fetch device from cloud failed
46 kThingSmartMatterKitErrorFetchDeviceFailed = 3016,
47 //third active failed
48 kThingSmartMatterKitErrorThirdDeviceActiveFailed = 3017,
49 //Fetch Gateway Node ID failed
50 kThingSmartMatterKitErrorFetchGatewayNodeIdFailed = 3018,
51 //Fetch gatway device failed
52 kThingSmartMatterKitFetchGatewayDeviceFailed = 3019,
53 //generate NOCChain failed
54 kThingSmartMatterKitNOCChainFailed = 3020,
55 //request acl failed
56 kThingSmartMatterKitRequestACLFailed = 3021,
57 //Fetch Node ID failed
58 kThingSmartMatterKitErrorFetchNodeIdFailed = 3022,
59 //node not empty
60 kThingSmartMatterKitErrorNodeEmptyFailed = 3023,
61 //acl nil
62 kThingSmartMatterKitCloundACLEmpty = 3024,
63 //write acl faield
64 kThingSmartMatterKitWriteACLFailed = 3025,
65 //write acl failed
66 kThingSmartMatterKitNotifyAclFailed = 3026,
67 //device not online
68 kThingSmartMatterKitErrorDeviceOffLine = 3027,
69 // controller failed
70 kThingSmartMatterKitErrorControllerFailed = 3028,
71 //invalid params
72 kThingSmartMatterKitErrorInvaildParams = 3029,
73 //Connect Close
74 kThingSmartMatterKitErrorConnectClose = 3030,
75 //ConnectDelete
76 kThingSmartMatterKitErrorConnectDelete = 3031,
77 //CommonFailed
78 kThingSmartMatterKitErrorCommonFailed = 3032,
79 // BLEScanFailed
80 kThingSmartMatterKitErrorBLEScanFailed = 3033,
81 // BLEScanTimeout
82 kThingSmartMatterKitErrorBLEScanTimeout = 3034, //1
83 //no uuid
84 kThingSmartMatterKitErrorNoUUID = 3035,
85 // MatterConnectFailed
86 kThingSmartMatterKitErrorMatterConnectFailed = 3036,
87 // ReadAttribute failed
88 kThingSmartMatterKitErrorReadAttributeFailed = 3037,
89 // SendCommandFailed
90 kThingSmartMatterKitErrorSendCommandFailed = 3038,
91 //3UUIDNoExist
92 kThingSmartMatterKitErrorC3UUIDNoExist = 3039,
93 //C3UUIDEmpty
94 kThingSmartMatterKitErrorC3UUIDEmpty = 3040,
95 //C3ParseFailed
96 kThingSmartMatterKitErrorC3ParseFailed = 3041,
97 // NotSupportAttribute
98 kThingSmartMatterKitErrorNotSupportAttribute = 3042,
99 //get connect device
100 kThingSmartMatterKitErrorNoChipDevice = 3043,
101 //time out
102 kThingSmartMatterKitErrorTimeOut = 3044,
103 //FetchDPEngineFileFailed
104 kThingSmartMatterKitFetchDPEngineFileFailed = 3045,
105 //DPEngine addDeviceIndfo failed
106 kThingSmartMatterKitDPEngineAddDevice = 3046,
107 //DP Engine control failed
108 kThingSmartMatterKitDPEngineControlFailed = 3047,
109 //MatterModelEmpty
110 kThingSmartMatterKitMatterModelEmpty = 3048,
111 // ReadVendorIdfailed
112 kThingSmartMatterKitErrorReadVendorIdFailed = 3049,
113 // ReadProductID failed
114 kThingSmartMatterKitErrorReadProductIDFailed = 3050,
115 // open PairingWindow failed
116 kThingSmartMatterKitErrorOpenPairingWindowFailed = 3051,
117 //get thread network failed
118 kThingSmartMatterKitErrorGetThreadFailed = 3054,
119 // Matter Attestion Canceled
120 kThingSmartMatterKitErrorIgnoreAttestationFailure = 3055,
121 // remove fabric failed
122 kThingSmartMatterKitErrorRemoveFabricFailed = 3056,
123 // the http api request fail
124 kThingSmartMatterKitErrorHttpApiRequestFailed = 3057,
125 // revoke device commission window fail
126 kThingSmartMatterKitErrorRevokeCommissioningFailed = 3058,
127 // multiple fabric share over limit
128 kThingSmartMatterKitErrorShareOverLimit = 3059,
129 // not support
130 kThingSmartMatterFabricNOTSupport = 3060,
131 // noc is exist
132 kThingSmartFabricAlreadyExist = 3061,
133 // matter pid not exist
134 kThingSmartMatterPidNotExist = 3062,
135 // No home permissions
136 kThingSmartMatterNoPermissions = 3063,
137 // MatterSupport Failed
138 kThingSmartMatterKitErrorMatterSupportFailed = 4000,
139 // MatterSupport Wifi error
140 kThingSmartMatterKitErrorMatterWIFIERROR = 4001,
141 // MatterSupport Thread router confirm
142 kThingSmartMatterKitErrorThreadRouteDiscoveryFailed = 4002,
143 // Failed to find OTBR Agent ID
144 kThingSmartMatterKitErrorThreadAgentIDDiscoveryFailed = 4002,
145 // NOT_SUPPORT_MULTI_FABRIC
146 kThingSmartMatterKitErrorNotSupportMultiFabric = 4003,
147 // Matter Support Payload create failed
148 kThingSmartMatterKitErrorMatterSupportPayloadCreateFailed = 4004,
149 // Matter Support Use Wrong verison,only support over iOS16.1
150 kThingSmartMatterKitErrorMatterSupportVerisonLimit = 4005,
151 // Matter Support Missing public key
152 kThingSmartMatterKitErrorMatterSupportMissPublicKey = 4006,
153};
154
155#define kThingSmartMatterKitErrorDomain @"com.thing.smart.matterKit"
156
157#endif /* ThingSmartMatterKitErrors_h */
typedef NS_ENUM(NSInteger, ThingSmartMatterKitError)
The definitions of ThingSmartMatter kit errors.