All Products
Search
Document Center

IoT Platform:Overview

Last Updated:May 24, 2023

You can connect devices to IoT Platform, send messages from devices to IoT Platform, subscribe to device messages from IoT Platform, and send commands from IoT Platform to devices. This topic describes these basic operations.

Prerequisites

  • IoT Platform is activated.
  • A Node.js development environment is prepared. In this example, a device is configured by using Link SDK for Node.js on Windows 10 (64-bit). The business server sends commands to the device by calling the Pub operation of IoT Platform SDK for Node.js.
  • A Java development environment is prepared. The business server uses the Advanced Message Queuing Protocol (AMQP) SDK for Java to receive device messages.

    The Java development environment consists of the following components:

Background information

In this example, a home thermostat is used to show how devices connect to IoT Platform and send and receive messages. The thermostat submits temperature and humidity data to IoT Platform. The business server sends messages to the thermostat by calling the API operation.

Message communication process

Process

In the preceding figure, the numbers from 1 to 4 correspond to the following steps:

  1. Submit device data to IoT Platform.
    1. Purchase an Enterprise Edition instance: Purchase an Enterprise Edition instance in IoT Platform. Then, you can connect devices to the instance and manage your business.
    2. Create a product and device: Create a product, add a device to the product, and obtain certificate information about the device in the IoT Platform console. The certificate information includes the ProductKey, DeviceName, and DeviceSecret. After you connect a device to IoT Platform, the certificate is a key credential for subsequent communication between the device and IoT Platform.
    3. Connect the device to IoT Platform and submit data: Connect a device to an IoT Platform Enterprise Edition instance over Message Queue Telemetry Transport (MQTT) and then submit Thing Specification Language (TSL) data.
  2. Forward data to Tablestore: Use the data forwarding feature of the rules engine to forward data to Tablestore (OTS).
  3. Subscribe to device messages from IoT Platform: Forward data to the business server over AMQP.
  4. Send commands from IoT Platform to devices: Call an IoT Platform API operation to send a command to the device.