Help Center> IoT Device Access> FAQs> MQTT-based Device Access
Updated on 2024-04-29 GMT+08:00

MQTT-based Device Access

What Are the Domain Name and Port Number for MQTT-based Device Access?

Log in to the IoTDA console, select an instance, and click Access Details. On the displayed page, obtain the domain name and port number for accessing MQTT-based devices.

Figure 1 Access details

Does the Server CA Certificate Need to Be Verified During MQTT Connection?

To use TLS for MQTT access, you need to load the server CA certificate. Refer to the certificate usage in Using MQTT Demos for Access, or download the platform CA certificate from Obtaining Resources.

What If Device Authentication Fails?

  1. Run the ping, telnet, and traceroute commands to check whether the network is normal. If the network is abnormal, check the local firewall policy.
  2. Check whether the device certificate or information, device ID, and device secret are correct.
  3. Log in to the IoTDA console, choose Devices > All Devices, click the target device to access its details page, click the Message Trace tab and start message tracing. You can view related logs on this page after enabling the function.
  4. Alternatively, choose O&M > Run Logs in the navigation pane, and configure the run logs by referring to Description of Run Logs. After the run logs are enabled, you can view the error information in the logs.

How Do I Analyze the Cause of Device Disconnection?

Use the disconnection analysis function.

How Do I Develop MQTT Devices on the IoT Platform?

  1. Create products, develop product models (optional), register devices, and develop codecs (optional) on the platform.
  2. Use SDKs or native protocols to connect devices to the platform.
  3. (Optional) Perform operations on applications.

How Do I Connect MQTT Devices to the IoT Platform?

You can use the native MQTT protocol or an SDK. If you choose to use an SDK, select a proper SDK based on the programming language, device operating system, and resources. For details, see Development on the Device Side.