Quick start overview
Learn how to connect a device to IoT Platform, report device data, subscribe to device messages, and send commands from the cloud.
Prerequisites
-
Activate the IoT Platform service.
NoteAfter activation, try IoT Platform for free. Alibaba Cloud IoT Platform products for free trial. Billing overview.
-
Prepare a Node.js development environment. Examples use Windows 10 (64-bit). The Alibaba Cloud SDK for Node.js handles device-side development. The IoT Platform cloud SDK for Node.js sends server commands by calling the Pub API.
-
Prepare a Java development environment. The server uses the AMQP SDK for Java to receive device messages.
Java development environment:
Operating system: Windows 10 (64-bit)
JDK version: JDK 8
Integrated development environment (IDE): IntelliJ IDEA Community Edition
Scenario
A home thermostat connects to IoT Platform, reports temperature and humidity data, and exchanges messages through an API.
Message communication flow

Steps ① through ④ in the diagram:
-
The device reports data to IoT Platform.
-
Create an Enterprise instance: Purchase an Enterprise Edition instance to connect devices and manage services.
-
Create a product and a device: Create a product and device in the IoT Platform console to obtain the device certificate (ProductKey, DeviceName, and DeviceSecret) for identity authentication.
-
Connect the device and report data: Connect the device to the Enterprise Edition instance over MQTT and report data using a Thing Specification Language (TSL) model.
-
-
Forward data to Tablestore: Forward device data to Tablestore by using the rules engine.
-
Subscribe to device messages on the server: Receive device data on your server over an AMQP channel.
-
Send commands from the cloud: Call an IoT Platform API to send commands to the device.