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.
Broadcasting
The local broadcast of the Android system is used to receive messages reported by the AgentLite SDK.
Broadcasts can be registered only in dynamic registration mode.
APIs
The following table describes the main functions provided by the AgentLite SDK.
- 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 | BaseService.init | |
| BaseService.destroy | ||
| BindConfig.setConfig | ||
| BindService.bind | ||
| HubService.TOPIC_UNBINDDEVICE | ||
| LoginConfig.setConfig | ||
| BaseService.setAlgType | (Optional) Configuring the Login Information Encryption Algorithm | |
| LoginService.login | ||
| LoginService.logout | ||
| Managing indirectly connected devices on a gateway | HubService.addDevice | |
| HubService.deviceStatusUpdate | ||
| HubService.rmvDevice | ||
| Reporting device data | DataTransService.reportData | |
| Receiving a command | DataTransService.TOPIC_COMMAND_RECEIVE | |
| Releasing data | DataTransService.mqttDataPub |
Last Article: AgentLite API Reference (Android)
Next Article: Connecting Directly Connected Devices
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.