Response Error Codes
System Framework Error Codes
Error Code
Description
0
Success
1
Command not supported (included in the Combo framework but not ported or adapted on the current platform)
2
Command parameter contains an unsupported operation (the current platform supports only part of the operations for this command)
3
Invalid command format (incorrect number of parameters, e.g., two parameters required but only one provided)
4
Parameter error (invalid parameter value, e.g., a digit 0–9 is required but 10 or xyz was provided)
5
Parameter length error (command length exceeds the maximum supported length)
31
Current command not finished; status must be reported asynchronously. This value is used by the state machine for command handling and is not returned as a message.
32
Unknown error (or unhandled error type)
3
Invalid command format (incorrect number of parameters, e.g., two parameters required but only one provided)
Common General Error Codes
Error Code
Description
33
malloc error
34
Failed to read buffer
35
Failed to write buffer
36
Configuration error (invalid configuration loaded from memory, e.g., OTA upgrade port set to -1; a configuration error is reported when AT+OTA checks the port)
37
Failed to create task
38
Flash read/write failed
39
UART configuration error: unsupported baud rate
40
UART configuration error: unsupported data bits
41
UART configuration error: unsupported stop bits
42
UART configuration error: unsupported parity
43
UART configuration error: unsupported flow control
44
UART configuration failed
45
Incorrect username/password
46
Low-power mode error or unsupported low-power mode
47
Uninitialized configuration data error (including IO mapping data)
63
General error code (no additional information)
Wi-Fi Error Codes
Error Code
Description
64
Wi-Fi not initialized or initialization failed
65
Wi-Fi mode error (cannot connect to Wi-Fi in AP-only mode)
66
Wi-Fi connection failed
67
Wi-Fi connected but failed to obtain IP (DHCP error)
68
Failed to get encryption method
69
Specified AP not found during scan
70
Failed to start Wi-Fi scan
71
Wi-Fi scan timed out
72
Failed to start AP hotspot
73
Failed to get router Wi-Fi information or locally started AP information
74
Network interface (STA/AP) not running
75
Wi-Fi country code error (unsupported Wi-Fi country code)
76
Current network provisioning mode error
95
Unknown Wi-Fi connection error
Socket Error Codes
Error Code
Description
96
Failed to create socket
97
Socket connection failed
98
DNS failed
99
Socket state error (e.g., TCP not connected yet)
100
Socket type error
101
Socket send failed
102
Socket receive failed
103
Failed to create socket monitor thread
104
Socket bind error
105
Transparent transmission not available for current connection (incorrect socket type or count)
106
PING test failed (100% packet loss)
107
Wi-Fi country code error (unsupported Wi-Fi country code)
108
SSL config error
109
SSL verification error (usually caused by unsupported SSL cipher type or invalid certificate)
127
Unknown socket error
GPIO Control Error Codes
Error Code |
Description |
|---|---|
128 |
GPIO mode error (e.g., configured as input but an output command was executed) |
129 |
IO not in GPIO mapping table (e.g., pins 0–4 are mapped but pin 5 was accessed) |
130 |
NC pin; cannot be controlled (e.g., UART, VCC, GND pins cannot be controlled via AT commands) |
131 |
Pin mode setting error or unsupported mode |
132 |
GPIO pull-up/pull-down setting error or unsupported pull mode |
133 |
PWM period not supported by hardware |
159 |
Unknown GPIO operation error |
HTTP(S) Error Codes
Error Code |
Description |
|---|---|
160 |
HTTP(S) response header format error |
191 |
Unknown HTTP(S) request error |
MQTT Related
Error Code |
Description |
|---|---|
192 |
MQTT connection method error |
193 |
MQTT connection failed |
194 |
MQTT configuration error |
195 |
Failed to publish MQTT message |
196 |
MQTT subscription list is full |
197 |
No MQTT response received |
198 |
MQTT busy or connection timed out |
224 |
Unknown MQTT error |
BLE Bluetooth Related
Error Code
Description
225
Bluetooth start or stop error
226
Failed to set Bluetooth MAC address
227
Bluetooth MAC address modification not supported
228
Unsupported state or operation not allowed in the current state
229
Failed to disconnect Bluetooth
230
Failed to set Bluetooth MTU (see 236 for MTU retrieval failure)
231
Failed to send Bluetooth data
232
Failed to set Bluetooth peripheral advertising state
233
Bluetooth central scan failed
234
Specified Bluetooth device not found during scan
235
Bluetooth connection failed
236
Failed to get MTU (see 230 for MTU setting failure)
237
Failed to get Bluetooth MAC address (226: set Bluetooth MAC; 237: get Bluetooth MAC failed)