Updated on 2024-11-04 GMT+08:00

Overview

IoTDA allows devices to access the IoT platform using MQTTS or MQTTT and send and receive messages. This section uses MQTT.fx and Java SDKs as examples to describe how a device sends and receives messages using MQTTS or MQTTT.

Procedure

Figure 1 Procedure

Perform the following steps.

  1. Subscribe to IoTDA. You can select the instances specifications and number of units as required.
  2. Register a device. Create a product and register a device on the IoTDA console.
    • A product is a collection of devices with the same capabilities or features.
    • Device: A device is a physical entity under a product and is used for identity authentication (necessary) when the device connects to the platform. You can use an application to call the API for creating a device, register a device on the console, or use the self-registration capability to automatically register the device when it is connected to the platform.
  3. Send and receive messages.
    • Use MQTT.fx to send and receive messages.
    • Use device SDKs to send and receive messages.