Unlock the Power of AI

1 million free tokens

88% Price Reduction

Activate Now

Overview

Updated at: 2024-10-18 02:52

ApsaraMQ for MQTT allows you to use SDKs for different programming languages to connect to the Message Queue for MQTT broker to send and receive messages. This topic describes how to use Message Queue for MQTT SDK for Java to send and receive messages in different scenarios.

Procedure

The following figure shows the process of using Message Queue for MQTT SDK for Java to send and receive messages.

流程图

The process includes the following steps:

  1. Activate ApsaraMQ for MQTT and grant permissions to a RAM user

    Activate Message Queue for MQTT and authorize a RAM user to use ApsaraMQ for MQTT resources.

  2. Create resources

    Create instances, topics, and group IDs in the ApsaraMQ for MQTT console.

  3. Use Message Queue for MQTT SDK for Java to send and receive messages.

  • On this page (1, O)
  • Procedure
Feedback
phone Contact Us

Chat now with Alibaba Cloud Customer Service to assist you in finding the right products and services to meet your needs.

alicare alicarealicarealicare