Before You Start

Non-China Unicom users can view the IoT Device Access (IoTDA) Developer Guide.

Overview

The IoT platform provides the AgentLite SDK for fast device access. After being integrated with the AgentLite SDK, devices that support the TCP/IP protocol stack can directly communicate with the platform. Devices that do not support the TCP/IP protocol stack, such as Bluetooth and Zigbee devices, can forward device data to the platform through gateways integrated with the AgentLite SDK.

APIs

The following table describes the main functions provided by the AgentLite.

  • Directly connected devices refer to devices that are directly connected to the platform by using device binding and connection.
  • Indirectly connected devices refer to devices that are connected to the platform through gateways.

Function

API

Description

Connecting directly connected devices

IOTA_Init

Initializing AgentLite Resources

IOTA_Destroy

Releasing AgentLite Resources

IOTA_ConfigSetXXX

Configuring the Binding Relationship

IOTA_Bind

Binding a Device

IOTA_TOPIC_CMD_UNBIND_RECEIVE

Unbinding a Device

IOTA_SetConfig

Configuring Login Parameters

HW_SetAlgType

(Optional) Configuring the Login Information Encryption Algorithm

IOTA_Login

Connecting a Device

IOTA_Logout

Disconnecting a Device

Managing indirectly connected devices on a gateway

IOTA_HubDeviceAdd

Adding a Device

IOTA_DeviceStatusUpdate

Updating the Device Status

IOTA_HubDeviceRemove

Deleting a Device

Reporting device data

IOTA_ServiceDataReport

Reporting Device Data

Receiving a command

IOTA_TOPIC_SERVICE_COMMAND_RECEIVE/{deviceId}

Receiving a Command

Releasing data

IOTA_MqttDataPub

Releasing Data