Help Center> IoT Device Access> SDK Reference> Old SDKs> Differences Between Old and New SDKs

Differences Between Old and New SDKs

In addition to the old SDKs, we provide new device SDKs of more programming languages to deliver better performance and usability. New SDKs use product models and support new functions related to message, property, and device shadow processing. To learn about the concepts of new SDKs, see Terms.

The following table describes the differences between old and new SDKs.

Item

Old SDK

New SDK

Supported programming languages

  • Application SDKs: Java and Python
  • Device SDKs: C, Java, and Android (AgentLite)
  • Application SDKs: Java, Python, and C#
  • Device SDKs: Java and C (iot-device-sdk)

Application SDKs

Access with the old domain name and built-in certificate. Old domain name and port number: iot-api.cn-north-4.myhuaweicloud.com:8743

Access with the new domain name and built-in certificate. New domain name: iotda.cn-north-4.myhuaweicloud.com

Device SDKs

Access with the old domain name and built-in certificate. Old domain name: iot-acc.cn-north-4.myhuaweicloud.com

Access with the new domain name and built-in certificate. New domain name: iot-mqtts.cn-north-4.myhuaweicloud.com

Old SDKs use the V3 APIs provided by the platform. The address information displayed on the console, the certificates in documents, and the SDK resources use V5 APIs.

The platform still supports V3 APIs. Old SDKs or APIs must be used together with the corresponding version of domain name and certificate.

The following table describes the function differences between old and new device SDKs.

Function

Old SDK (AgentLite)

New SDK (iot-device-sdk)

Open-source

Non-open-source

Open-source

Protocol

HTTPS+MQTTS

MQTTS/MQTT

Port

8943+8883

8883/1883

Device connection

HTTPS login

MQTT authentication

Data reporting

One API

Reporting data through diversified APIs and responding to downstream message, property, and platform commands

Command delivery

One command

Delivering commands through diversified APIs for delivering messages and commands, setting and querying properties.

Child device management

Gateway-based management

Application-based management and notification through the gateway

Certificate authentication

-

New feature. Devices can be connected to the platform using certificates.

Topic customization

-

New feature. You can customize topics, release data, and subscribe to messages on devices.

Device shadow

-

New feature. You can query device shadow data on devices.

OTA upgrade

-

New feature. You can upgrade devices in over the air (OTA) mode.