Response error code ============= System frame related error code ------------------ .. list-table:: :header-rows: 1 * - Error code - Representative information * - 0 - Success * - 1 - This instruction is not supported (the combo framework contains this instruction but the current platform is not ported or the adaptation does not support it). * - 2 - The instruction parameter contains unsupported operations (the current platform only supports some operations on this instruction). * - 3 - The instruction format is wrong (this refers to the wrong number of parameters, for example, when two parameters are needed, but only one parameter is entered). * - 4 - Parameter error (the content of the parameter is wrong, for example, you need to enter a number from 0 to 9, and 10 or xyz is passed in, which is a parameter error). * - 5 - Wrong parameter length (instruction length exceeds the maximum supported length) * - 31 - The current instruction is not finished, and the status needs to be reported asynchronously. This value is used by the state machine to judge the instruction and does not return a message. * - 32 - Unknown error (or unhandled error type) * - 3 - The instruction format is wrong (this refers to the wrong number of parameters, for example, when two parameters are needed, but only one parameter is entered). Common gerneral error code ------------------ .. list-table:: :header-rows: 1 * - Error code - Representative information * - 33 - malloc mistake * - 34 - Failed to read buf * - 35 - Failed to write buf * - 36 - Configuration error (configuration error loaded from memory, for example, we set the port -1 of OTA upgrade, and check the port error when executing AT+OTA, and then we will report the configuration error). * - 37 - Failed to create task. * - 38 - Flash read and write failed. * - 39 - Serial port configuration error, unsupported baud rate. * - 40 - Serial port configuration error, unsupported data bit. * - 41 - Serial port configuration error, unsupported stop bit. * - 42 - Serial port configuration error, unsupported parity bit. * - 43 - Serial port configuration error, unsupported flow control. * - 44 - Serial port configuration failed. * - 45 - User name/password error * - 46 - Low power mode error or unsupported low power mode * - 47 - Error in uninitialized configuration data (including io mapping data) * - 63 - General error code (no other information) Wi-Fi Related error code ------------------ .. list-table:: :header-rows: 1 * - Error code - Representative information * - 64 - Wi-Fi is not initialized or initialization failed. * - 65 - Wi-Fi mode error (single AP mode cannot connect to Wi-Fi) * - 66 - Wi-Fi connection failed. * - 67 - Wi-Fi connection successful, error in obtaining IP(DHCP). * - 68 - Failed to get encryption method. * - 69 - The specified AP was not scanned. * - 70 - Wi-Fi scan failed to start. * - 71 - Wi-Fi scan timeout. * - 72 - Failed to open AP hotspot * - 73 - Failed to obtain the Wi-Fi information of the router or the information of the AP opened by itself. * - 74 - The network card (STA/AP) is not running. * - 75 - Wi-Fi country code error (unsupported Wi-Fi country code) * - 76 - The current distribution mode is wrong. * - 95 - Wi-Fi connection unknown error. Socket related error code ------------------ .. list-table:: :header-rows: 1 * - Error code -Representative information * - 96 - Failed to create socket. * - 97 -Socket connection failed. * - 98 - DNS failure * - 99 - Socket status error (for example, tcp is not connected yet) * - 100 - Wrong socket type. * - 101 - socket sending failed. * - 102 - socket reception failed. * - 103 - socket monitoring thread creation failed. * - 104 - socket bind error * - 105 - The current connection cannot be transparently linked (wrong socket type or wrong number). * - 106 - PING test failed (all packets were lost) * - 107 - Wi-Fi country code error (unsupported Wi-Fi country code) * - 108 - SSL Config error * - 109 - SSL verification error (generally caused by unsupported SSL encryption type or certificate error) * - 127 - Socket unknown error GPIO control related error code ------------------ .. list-table:: :header-rows: 1 * - Error code - Representative information * - 128 - GPIO mode error (for example, the input is configured and then the output instruction is executed). * - 129 - The IO of the operation did not burn the GPIO mapping table (for example, if the IO mapping of pins 0~4 is set, this error will be reported by operating pin 5). * - 130 - The NC pin can't be controlled (for example, serial port, VCC, GND are controlled by AT command). * - 131 - Wrong pin mode setting, or unsupported mode. * - 132 - Error in setting GPIO pull-up or pull-down mode) * - 133 - Hardware unsupported PWM cycle. * - 159 - GPIO operation unknown error HTTP(S) related error code ------------------ .. list-table:: :header-rows: 1 * - Error code - Representative information * - 160 - The HTTP(S) response header format error. * - 191 - Unknown error in HTTP(S) request. About MQTT ------------------ .. list-table:: :header-rows: 1 * - Error code - Representative information * - 192 - MQTT connection mode is wrong. * - 193 - MQTT connection failed. * - 194 - MQTT configuration error * - 195 - Failed to publish MQTT message. * - 196 - The MQTT message subscription list is full. * - 197 - MQTT did not receive a response. * - 198 - MQTT busy or connection timeout. * - 224 - MQTT unknown error About BLE Bluetooth ------------------ .. list-table:: :header-rows: 1 * - Error code - Representative information * - 225 - Bluetooth turn on or turn off error * - 226 - Failed to set Bluetooth MAC. * - 227 - Modification of Bluetooth MAC is not supported. * - 228 - The unsupported state or the operation being executed is not allowed in the current state. * - 229 - Bluetooth disconnection failed. * - 230 - Bluetooth failed to set MTU (236 failed to get MTU) * - 231 - Bluetooth failed to send data. * - 232 - Set Bluetooth slave broadcast status * - 233 - Bluetooth host scan failed. * - 234 - The specified Bluetooth was not scanned. * - 235 - Bluetooth connection failed. * - 236 - Failed to get MTU (230 failed to set MTU) * - 237 - Failed to obtain Bluetooth MAC (226: set Bluetooth MAC; 237: Failed to get Bluetooth MAC)