6#ifndef TUYA_CLOUD_ERROR_CODE_H
7#define TUYA_CLOUD_ERROR_CODE_H
9#include "tuya_error_code.h"
30#define OPRT_INIT_MUTEX_ATTR_FAILED (-101)
31#define OPRT_SET_MUTEX_ATTR_FAILED (-102)
32#define OPRT_DESTROY_MUTEX_ATTR_FAILED (-103)
33#define OPRT_INIT_MUTEX_FAILED (-104)
34#define OPRT_MUTEX_LOCK_FAILED (-105)
35#define OPRT_MUTEX_TRYLOCK_FAILED (-106)
36#define OPRT_MUTEX_LOCK_BUSY (-107)
37#define OPRT_MUTEX_UNLOCK_FAILED (-108)
38#define OPRT_MUTEX_RELEASE_FAILED (-109)
40#define OPRT_MEM_PARTITION_EMPTY (-111)
41#define OPRT_MEM_PARTITION_FULL (-112)
42#define OPRT_MEM_PARTITION_NOT_FOUND (-113)
43#define OPRT_DONOT_FOUND_MODULE (-114)
45#define OPRT_INIT_SEM_FAILED (-201)
46#define OPRT_WAIT_SEM_FAILED (-202)
47#define OPRT_POST_SEM_FAILED (-203)
49#define OPRT_THRD_STA_UNVALID (-301)
50#define OPRT_THRD_CR_FAILED (-302)
51#define OPRT_THRD_JOIN_FAILED (-303)
52#define OPRT_THRD_SELF_CAN_NOT_JOIN (-304)
54#define OPRT_TIMERID_EXIST (-401)
55#define OPRT_TIMERID_NOT_FOUND (-402)
56#define OPRT_TIMERID_UNVALID (-403)
57#define OPRT_GET_IDLE_TIMERID_ERROR (-404)
59#define OPRT_MSG_NOT_FOUND (-501)
60#define OPRT_MSG_LIST_EMPTY (-502)
62#define OPRT_WIFI_SCAN_FAIL (-601)
63#define OPRT_WF_MAC_SET_FAIL (-602)
64#define OPRT_WF_CONN_FAIL (-603)
65#define OPRT_WF_NW_CFG_FAIL (-604)
66#define OPRT_WF_AP_SACN_FAIL (-605)
67#define OPRT_WF_NOT_FIND_ASS_AP (-606)
68#define OPRT_DISCONNECTED_WITH_ROUTER (-607)
74#define OPRT_BUF_NOT_ENOUGH (-704)
75#define OPRT_URL_PARAM_OUT_LIMIT (-705)
76#define OPRT_HTTP_OS_ERROR (-706)
77#define OPRT_HTTP_PR_REQ_ERROR (-707)
78#define OPRT_HTTP_SD_REQ_ERROR (-708)
79#define OPRT_HTTP_RD_ERROR (-709)
80#define OPRT_HTTP_AD_HD_ERROR (-710)
81#define OPRT_HTTP_GET_RESP_ERROR (-711)
82#define OPRT_HTTP_AES_INIT_ERR (-712)
83#define OPRT_HTTP_AES_OPEN_ERR (-713)
84#define OPRT_HTTP_AES_SET_KEY_ERR (-714)
85#define OPRT_HTTP_AES_ENCRYPT_ERR (-715)
86#define OPRT_CR_HTTP_URL_H_ERR (-716)
87#define OPRT_HTTPS_HANDLE_FAIL (-717)
88#define OPRT_HTTPS_RESP_UNVALID (-718)
89#define OPRT_HTTPS_NO_SUPPORT_RANGE (-719)
90#define OPRT_HTTPS_NOT_ENCRYPT_RET (-720)
91#define OPRT_HTTP_FILL_URL_H_ERR (-721)
92#define OPRT_HTTP_FILL_URL_FULL_ERR (-722)
93#define OPRT_HTTP_FILL_DATA_ERR (-723)
94#define OPRT_HTTP_URL_CFG_AI_SPEAKER_ERR (-724)
95#define OPRT_HTTP_URL_CFG_URL_ERR (-725)
96#define OPRT_HTTP_URL_CFG_URL2IP_ERR (-726)
97#define OPRT_HTTP_URL_CFG_URL2IP_SELF_ERR (-727)
98#define OPRT_HTTP_URL_CFG_URL2IP_PSK_ERR (-728)
107#define OPRT_DP_ATTR_ILLEGAL (-902)
108#define OPRT_DP_TYPE_PROP_ILLEGAL (-903)
109#define OPRT_DP_REPORT_CLOUD_ERR (-904)
110#define OPRT_NO_NEED_SET_PRODINFO (-905)
111#define OPRT_NW_INVALID (-906)
112#define OPRT_SELECT_ERR (-907)
113#define OPRT_SELECT_TM (-908)
115#define OPRT_DEV_NOT_BIND (-910)
116#define OPRT_FW_UG_FAILED (-911)
117#define OPRT_VER_FMT_ERR (-912)
118#define OPRT_FW_NOT_EXIST (-913)
119#define OPRT_SEM_CR_ERR (-914)
120#define OPRT_SELECT_TIMEOUT (-915)
121#define OPRT_GW_MQ_OFFLILNE (-916)
122#define OPRT_NOT_SPT_CLX_DP (-917)
124#define OPRT_UG_PKG_NOT_ENOUGH (-919)
125#define OPRT_SCMA_INVALID (-920)
126#define OPRT_PRODECT_KEY_NULL (-921)
127#define OPRT_DEVICE_VER_NULL (-922)
128#define OPRT_MSG_OUT_OF_LMT (-923)
129#define OPRT_NOT_FOUND_AUTH_SSID (-924)
130#define OPRT_SOCKET_FAULT (-925)
131#define OPRT_MQ_PUBLISH_TIMEOUT (-926)
132#define OPRT_GW_NOT_EXIST (-927)
133#define OPRT_GW_SCHEMA_SIZE_LMT_OUT (-928)
134#define OPRT_DEV_DP_CNT_INVALID (-929)
135#define OPRT_TOKEN_OVERTIME (-930)
136#define OPRT_WF_NW_CFG_RECV_CONTINUE (-931)
138#define OPRT_SERV_VRFY_FAIL (-933)
141#define OPRT_NO_AUTHENTICATION (-936)
142#define OPRT_CMD_OUT_OF_TIME_NOT_EXEC (-937)
143#define OPRT_CMD_NOT_EXEC (-938)
145#define OPRT_LAN_NO_CLIENT (-940)
146#define OPRT_WF_INTF_LACK_REG_CB (-941)
147#define OPRT_WF_INTF_NO_REG_CB (-942)
148#define OPRT_STORAGE_UPLOAD (-943)
149#define OPRT_DP_ID_NOT_FOUND (-944)
150#define OPRT_DP_TP_NOT_MATCH (-945)
151#define OPRT_DEV_NEED_REGISTER (-946)
152#define OPRT_DEV_RESET_FACTORY (-947)
153#define OPRT_API_VERSION_WRONG (-948)
154#define OPRT_DEV_ALREADY_BIND (-949)
155#define OPRT_API_DECODE_FAILED (-950)
156#define OPRT_API_TOKEN_EXPIRE (-951)
157#define OPRT_NOT_EXISTS (-952)
158#define OPRT_DP_ALREADY_PROCESS (-953)
159#define OPRT_API_VERIFY_FAILED (-954)
160#define OPRT_WRITE_FILE_FAILED (-1000)
161#define OPRT_OPEN_FILE_FAILED (-1001)
162#define OPRT_PRINT_LOG_LEVEL_HIGHER (-1002)
163#define OPRT_FORMAT_STRING_FAILED (-1003)
164#define OPRT_STRING_TOO_LONG (-1004)
165#define OPRT_WR_FLASH_ERROR (-1005)
167#define OPRT_ROUTER_NOT_FIND (-1006)
169#define OPRT_SECURITY_VERIFY_NOT_OK (-1008)
170#define OPRT_FLASH_NOT_ENOUGH_PAGE (-1009)
171#define OPRT_ERASE_FLASH_ERROR (-1088)
173#define OPRT_OSS_OPERATION_INIT_FAILED (-1100)
174#define OPRT_OSS_OPERATION_UPDATE_FAILED (-1101)
175#define OPRT_OSS_OPERATION_UPLOAD_FAILED (-1102)
176#define OPRT_MOTION_DETECTION_ALARM_PACK_REPORT_FAILED (-1103)
177#define OPRT_TRANSFER_INIT_FAILED (-1104)
179#define OPRT_LOG_SEQ_LOCKED (-1200)
180#define OPRT_LOG_SEQ_DONT_LOCKED (-1201)
182#define OPRT_LOCAL_LINK_IGNORE (-1300)
183#define OPRT_LOCAL_LINK_CONTINUE (-1301)
187#define OPRT_IMG_PROC_IMG_TYPE (-1201)
188#define OPRT_IMG_PROC_IMG_SIZE (-1202)
189#define OPRT_IMG_PROC_PTR_NULL (-1203)
190#define OPRT_IMG_PROC_ARRAY_SIZE (-1204)
191#define OPRT_IMG_PROC_SCALE_SIZE (-1205)
192#define OPRT_IMG_PROC_PARA_ERROR (-1206)
195#define OPRT_EVENT_STATUS_INVALID (-2000)
196#define OPRT_ENCRYPT_KEY_UPDATED (-2001)
197#define OPRT_ORDER_EXPIRE (-2002)
198#define OPRT_NO_MORE_DATA (-2003)
199#define OPRT_CLOUD_STORAGE_OFF (-2004)
200#define OPRT_CLOUD_STORAGE_STATUS_INVALID (-2005)
201#define OPRT_REMOTE_API_RUN_UNKNOW_FAILED (-2006)
202#define OPRT_DEVICE_REMOVED (-2007)
203#define OPRT_SIGNATURE_ERROR (-2008)
204#define OPRT_DEVICE_NOT_WRONG (-2009)
205#define OPRT_WORK_NUM_EXIST (-2010)
206#define OPRT_SERVER_NOT_CONNECTED (-2011)
207#define OPRT_AUTH_FAIL (-2012)
208#define OPRT_LOCAL_AI_FACE_NOT_INIT (-2013)
209#define OPRT_LOCAL_AI_FACE_DB_ERROR (-2014)
210#define OPRT_UPLOAD_INTERRUPT_ERROR (-2015)
212#define OPRT_DEVICE_IS_SUB_NODE_OR_IN_ELECTION (-2016)
215#define OPRT_WARN_LIVING_CHROMECAST (148)
216#define OPRT_WARN_LIVING_ECHOSHOW (149)
217#define OPRT_INFO_QUIT_CHROMECAST (150)
218#define OPRT_INFO_QUIT_ECHOSHOW (151)
221#define MQTT_DEF_ERR (-3000)
222#define MQTT_INVALID_PARM (-3001)
223#define MQTT_MALLOC_FAILED (-3002)
224#define MQTT_DNS_PARSED_FAILED (-3010)
225#define MQTT_SOCK_CREAT_FAILED (-3011)
226#define MQTT_SOCK_CET_FAILED (-3012)
227#define MQTT_TCP_CONNECD_FAILED (-3013)
228#define MQTT_TCP_TLS_CONNECD_FAILED (-3014)
229#define MQTT_PACK_SEND_FAILED (-3015)
230#define MQTT_RECV_DATA_FORMAT_WRONG (-3016)
231#define MQTT_RECV_DATA_MSGID_NOT_MATCH (-3017)
232#define MQTT_START_TM_MSG_ERR (-3018)
233#define MQTT_OVER_MAX_MESSAGE_LEN (-3019)
234#define MQTT_PING_SEND_ERR (-3020)