All Products
Search
Document Center

IoT Platform:Error codes

Last Updated:Jun 27, 2023

This topic describes the error codes that IoT Platform can return to devices if you connect the devices to IoT Platform by using Link SDK for Android.

Common error codes

Error code

Error subcode

Error message

Description

1101100

None

ERROR_SDK_ERROR

An internal exception occurred when the SDK was initialized.

1101101

None

ERROR_SDK_INIT_ERROR

An error occurred when the SDK was initialized.

120

ERROR_PARAMS_DEVICEINFO_INVALID

The ProductKey and DeviceName of the device certificate that you initialized are invalid.

121

ERROR_PARAMS_DEVICE_SECRET_NULL

The DeviceSecret of the device certificate that you initialized is invalid.

122

ERROR_PARAMS_SECURE_MODE_ITLS_WITH_PS_NULL

The ProductSecret that corresponds to the certificate of the device that was verified by using iTLS is invalid.

123

ERROR_STATE_LINKKIT_DEINITING

The DEINIT process is not complete. We recommend that you do not initialize the SDK until the DEINIT process is complete.

-33

None

MQTT_CONNECT_ERROR

The Message Queuing Telemetry Transport (MQTT) connection failed to be established.

  • Check whether the network is normal.

  • Check whether the device certificate is valid.

  • Check whether the domain name is valid.

  • Check whether multiple devices use the same device certificate.

-4

None

ERROR_HTTP

An HTTP request error occurred. For example, dynamic registration based on unique-certificate-per-product verification failed.

  • Check whether the domain name is valid.

  • Check whether the network is normal.

  • Check whether the system time is normal.

1101220

None

ERROR_COTA_GET_PARAMS_ERROR

An error occurred when the system queries request parameters for remote configuration.

1101230

None

ERROR_SHADOW_INVALID_STATE

The SDK is not initialized to call device shadow-related API operations.

1101231

None

ERROR_SHADOW_UPDATE_FAILED

The system failed to update the device shadow. For more information, see the error message.

1101232

None

ERROR_SHADOW_PARAMS_INVALID

The parameters that you configured to update the device shadow are invalid.

1101312

None

ERROR_GATEWAY_PERMIT_JOIN_DEVICE_INFO_INVALID

The device information that you initialized to call the PermitJoin function is invalid.

1101300

None

ERROR_GATEWAY_TOPO_NOT_ADDED

The topological relationship is not added.

1101301

None

ERROR_GATEWAY_SUBDEV_NOT_LOGIN

The sub-device does not log on to IoT Platform.

1101302

None

ERROR_GATEWAY_SUBDEV_WRAPPER_INFO_NULL

The sub-device information in the SDK is invalid.

1101303

None

ERROR_GATEWAY_SUBDEV_WRAPPER_NULL

The sub-device does not exist in the sub-device list cached in the SDK.

1101304

None

ERROR_GATEWAY_SUBDEV_THING_NOT_INITED

The Thing Specification Language (TSL) model of the sub-device is not initialized.

1101305

None

ERROR_GATEWAY_SUBDEV_LABEL_NULL

The tag of the sub-device is invalid. This error may occur if a sub-device to which no tag is added logs on to IoT Platform.

1101306

None

ERROR_GATEWAY_SUBDEV_SHADOW_NULL

The device shadow of the sub-device is invalid. This error may occur if a sub-device for which no device shadow is configured logs on to IoT Platform.

1101307

None

ERROR_GATEWAY_SUBDEV_COTA_NULL

The remote configuration of the sub-device is invalid. This error may occur if a sub-device for which no remote configuration is specified logs on to IoT Platform.

1101308

None

ERROR_GATEWAY_SUBDEV_INFO_INVALID

The certificate information of the sub-device is invalid.

1101309

None

ERROR_GATEWAY_SUBDEV_DISABLED

The sub-device is disabled in the IoT Platform console.

1101310

None

ERROR_GATEWAY_SUBDEV_DELETED

The sub-device is deleted.

1101311

None

ERROR_GATEWAY_LABEL_PARAMS_INVALID

The request parameters that you configured to query tags are valid.

1101312

None

LINKKIT_INIT_FAIL

The initialization failed. This error may occur after an MQTT connection is established but interrupted due to network issues during the initialization.

1101200

None

ERROR_TMP_INIT

The initialization failed due to a TMP initialization failure.

1101201

None

ERROR_DM_GET_TSL_INFO_INVALID

The initialization failed because the TSL information is invalid.

1101202

None

ERROR_DM_INIT_THING_PARAMS_INVALID

The initialization failed because the TSL parameters are invalid.

1101203

None

ERROR_DM_GET_TMP_IDEVICE

The initialization failed because the system failed to query the TSL model.

1101204

None

ERROR_DM_RESET_FAILED

The system failed to reset the device. This error may occur if no MQTT connection is established or the MQTT connection is interrupted.

1101205

None

ERROR_DM_INIT_THING_FAILED_IS_INITING

The TSL model is being initialized.

1101020

None

ERROR_DUPLICATE_SDK_INIT

The initialization is already run. The current initialization is complete or ongoing.

1102000

None

ERROR_CALL_INTERFACE_PARAMS_ERROR

The parameters that you configured to call the API operation are invalid. For more information about the API operation, see the error message or error subcode.

1102002

None

ERROR_PARAMS_ERROR

The parameters are invalid.

200201

None

DM_INIT_PARAMS_INVALID

The initialization parameters are invalid.

200301

None

DM_INIT_GET_TSL_RESPONSE_ERROR

The system failed to query the TSL model during the initialization.

100

None

ERROR_DUPLICATE_SDK_INIT_DM

The device management module is already initialized.

101

None

ERROR_DUPLICATE_SDK_INIT_LK

The SDK is already initialized.

510

None

ERROR_CMP_PARAMS_ERROR

The CMP parameter is invalid.

514

None

ERROR_CMP_REGISTER_CONNECT_ERROR_EXIST

The connection type is registered. In most cases, you can ignore this error.

517

None

ERROR_CMP_SEND_ERROR_CONNECT_NOT_FOUND

The system failed to send the information. The current type of connection does not exist.

521

None

ERROR_CMP_SEND_ERROR_CONNECT_NOT_CONNECTED

The system failed to send the information. The connection failed to be established.

529

None

ERROR_CMP_REGISTER_CONNECT_IS_REGISTERING

The connection type is being registered.

4201

None

ERROR_UNKNOW

An internal error occurred on the client.

We recommend that you call the getMsg() function of the AError class to display the error message.

4101

None

ERROR_NETWORK_ERROR

A network error occurred due to network jitter or weak signals from cellular base stations.

4102

None

ERROR_SERVER

An error occurred on the gateway.

4103

None

ERROR_BUSINESS

  • The system failed to establish a connection during dynamic registration.

  • The value of the MQTT identity parameter is an empty string.

  • Other errors occurred when the system created an MQTT object.

  • The MQTT connection failed to be established.

  • The MQTT connection is broken.

  • The system failed to send messages or subscribe to a topic over MQTT.

MQTT error codes

Link SDK for Android uses an open source Paho MQTT library. The following code shows the native error codes of the library. If an MQTT connection is broken, the error logs of the MQTT connection and the corresponding error code are returned.

1=Invalid protocol version
2=Invalid client ID
3=Unavailable agent
4=Invalid user name or password
5=No connection permission
6=Unexpected error
32000=Timeout in waiting for a response from the server
32100=Client is connected
32101=Client is disconnected
32102=Disconnecting client
32103=Failed to connect to the server
32104=Client not connected
32105=Specified SocketFactory type does not match the agent URI
32106=Invalid SSL configuration
32107=Disconnection by callback is not allowed
32108=Unrecognized packet
32109=Disconnected
32110=Connected
32111=Client shutdown
32200=Persistent connection in use
32201=Token in use
32202=Excessive publishing