tencent cloud

Guide for Getting Started
Last updated:2026-01-30 14:40:39
Guide for Getting Started
Last updated: 2026-01-30 14:40:39
This document describes how to get started with TDMQ for MQTT. It uses creating an MQTT cluster as an example, connects to the cluster with our SDK Demo to complete the production and consumption of messages, checks message data in the console view, and finally destroys resources to help you quickly get started with TDMQ for MQTT service.

Network Connection Description

The MQTT cluster supports two connection methods: private network access and public network access. Based on your network environment, choose an appropriate access method.
For private network access, if the client and MQTT cluster are deployed in the same VPC, the network defaults to interconnectivity with no additional configuration required.
For public network access, you must enable a public network route and configure a secure access policy to allow designated IP access.
For more details, see Network Connection Description.

Getting Started Use Flow

Getting Started Use Flow for TDMQ for MQTT is as follows:
Step
Main Operations
Operation Instruction
1
Preparations
Before getting started with MQTT, you need to complete some preparations, such as preparing a Tencent Cloud account, ensuring the account has MQTT resource operation permissions, and setting up a VPC.
2
Create a cluster and configure the network
After completing the preparations, you can log in to the TDMQ for MQTT console and purchase a suitable specification MQTT cluster according to actual needs, then configure the network access point based on your network environment.
3
Configure authentication and authorization info
After creating the MQTT cluster, you need to configure authentication and authorization info for the cluster to ensure communication security between client and server.
4
Using the SDK to Send and Receive Messages
After completing cluster and user permission configurations in the console, you can use our SDK Demo to connect to the cluster and perform a message sending and receiving test.
5
Query messages Client details
After sending and receiving messages, you can view the message content, message trace, and connected client details for the specified Topic in the console.
6
Destroy resources
After getting started, you can use the purchased cluster for a live production environment. If the cluster is no longer needed, you can destroy resources. We will complete the refund based on your billing mode and usage duration, then clean up related data.
Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback