HiveMQ is the industry leader for enterprise-ready, beautifully scalable, large-scale IoT deployments with MQTT. We help companies connect things to the Internet. Our MQTT-based messaging platform ensures fast, reliable, and secure movement of data to and from connected IoT devices for companies around the world.
HiveMQ Cloud is a fully-managed, cloud-native IoT messaging platform that makes trustworthy and scalable IoT device connectivity simple:
Create a cluster with just a few clicks and connect your IoT devices. No installation or server management required.
Reduce your risk of operation. HiveMQ professionals with years of experience managing large-scale, mission-critical MQTT broker clusters maintain HiveMQ Cloud for you.
Automatic scaling to meet your demands smoothly with superior clustering technology that ensures high availability and reliability for all your IoT devices.
Enterprise-grade security from the ground up. Dedicated infrastructure with replication across 3 different data centers, TLS communication, device authentication/authorization, and 24/7 professional support.
Easy connection and integration with no vendor lock-in. HiveMQ Cloud is 100% compliant with the MQTT specification.
Custom cluster URLs to support your individual use case and branding.
Transparent pricing. No complicated service calculations and hidden costs.
|Available features vary per HiveMQ Cloud package. For more information, see HiveMQ Cloud packages.|
The best way to learn more about HiveMQ Cloud is to follow our HiveMQ Cloud Quick Start Guide and spin up your first HiveMQ cluster.
Try Out HiveMQ Cloud for free
You can take advantage of our introductory HiveMQ Cloud package at absolutely no cost. The FREE package is the perfect way to explore the features of HiveMQ Cloud. Here are the details:
Connect 100 MQTT devices at no cost to you.
No credit card required. Cancel anytime.
Begin immediately with our easy-to-follow in-product quick start guide.
HiveMQ Cloud Quick Start Guide
This guide shows you how to do the following in a few easy steps:
Sign Up and Log in on the HiveMQ Cloud Portal
To get started with HiveMQ Cloud, navigate to console.hivemq.cloud.
On the HiveMQ Cloud Portal dialog, switch to the Sign Up tab and sign up with your GitHub account, Google account, or email address.
Once you successfully sign up, switch back to the Log In tab and log in to your HiveMQ Cloud account.
Start Your Free HiveMQ Cloud Experience
After you sign up and log in, a page to select the type of HiveMQ Cloud package you want to use opens:
To select the HiveMQ Cloud FREE package, select Create Cluster on the HiveMQ Cloud FREE card.
A page to select the cloud service provider where you want us to host your free HiveMQ Cloud cluster opens:
To create your free HiveMQ Cloud cluster, select the cloud service provider that you prefer and select Create Cluster.
Within a few moments, your free HiveMQ Cloud cluster is running and ready.
To view cluster information and access the area where you define the credentials that your MQTT clients use to connect to the cluster, select Manage Cluster.
The Cluster Details page for your cluster opens.
To continue to follow the getting started guide in this documentation, switch to the Access Management tab .
To proceed with step-by-step getting started instructions online, switch to the Getting Started tab .
Create MQTT Client Credentials
To connect an MQTT client to your cluster, you need to define the MQTT credentials that allow the clients to access the cluster.
To create an MQTT credential, enter a Username and Password in the credentials input area of the Access Management tab for your HiveMQ Cloud cluster and select Add.
The Access Management tab adjusts to display the credentials that you add in the Active MQTT Credentials area.
You can add and delete MQTT credentials for your HiveMQ Cloud cluster as needed.
|Keep the Credentials page of your cluster open. To complete this procedure, you need the URL, port, and MQTT credential information from the Overview and Access Management tabs.|
Test Your New HiveMQ Cloud Cluster
Once you create your MQTT credentials, you are ready to connect an MQTT client and test your connection.
The following procedure shows you how to use the open-source command-line tool MQTT CLI to connect an MQTT client and test your connection.
We use the MQTT CLI for ease of use and to simplify the explanation of this example procedure.
However, you are free to use whichever tool and method you prefer.
For instructions with other tools, check the tooling information that is available on the Getting Started tab of the Cluster Details page for your HiveMQ Cloud cluster.
Connect an MQTT Client
To start the MQTT CLI in shell mode, open a terminal window and enter the following command:
The MQTT CLI starts and displays a list of useful options and commands.
To connect to your HiveMQ Cloud cluster, type the following command with the appropriate information from your Clusters page and press enter:
con -h <cluster-url> -p <port-number> -s -u <mqtt-credentials-username> -pw <mqtt-credentials-password>
Information about the HiveMQ Cloud connection displays.
This is your first connected MQTT client.
HiveMQ Cloud only allows secure TLS connections. Adding an -s flag to the connect command opens a secure connection to the MQTT Broker with the default SSL configuration.
To create another connected client and test your cluster, open a second terminal window (keep your original terminal window open) and enter the following command once more:
Copy and paste the connection command that you created in the first window to the second window and press enter.
Information about the second HiveMQ Cloud connection displays.
This is your second connected MQTT client.
In the terminal window of the second MQTT client, enter:
sub -t testTopic -s
This command subscribes the second MQTT client to all messages that are published to the topic testTopic.
In shell mode, adding the -s flag to the command blocks the MQTT CLI console so that the incoming messages are printed out to the user.
In the first terminal window, enter:
pub -t testTopic -m Hello
This command makes the first MQTT client a publisher and publishes the message Hello with the topic testTopic.
The message Hello appears immediately in the terminal window of the second MQTT client.
To publish another message, enter the following command in the first terminal window:
pub -t testTopic -m Goodbye
This command publishes the message Goodbye with the topic testTopic.
The message Goodbye appears immediately in the terminal window of the second MQTT client.
Try Out the HiveMQ WebSocket Client
Your Free HiveMQ Cloud package also supports MQTT over WebSocket on port 8884. Once you create a Free HiveMQ Cloud cluster you can use the public HiveMQ WebSocket client to test the connection. The graphical view of the public WebSocket client provides a convenient way to explore and experiment with MQTT functionality.
Access the HiveMQ WebSocket Client
To get started with the HiveMQ WebSocket Client, go to the HiveMQ WebSocket Showcase.
Connect to Your Free HiveMQ Cloud Instance
In the Host field, enter the hostname of your Free HiveMQ Cloud cluster from your Cluster Details page.
In the Port field, enter 8884 , the default port for secure WebSocket communication.
Since HiveMQ Cloud only accepts secure MQTT communication, select the SSL checkbox to activate TLS for the WebSocket client.
To establish a connection to your HiveMQ Cloud instance, select Connect.
Publish to Your Free HiveMQ Cloud Instance
To publish a message to a topic on your HiveMQ Cloud instance, expand the Publish panel of the WebSocket client.
In the Publish panel, enter your desired topic, message payload, and quality of service level (QoS). To add a retained message flag to the message, select the Retain checkbox.
To publish your message to your HiveMQ Cloud instance, select Publish.
Subscribe to Your Free HiveMQ Cloud Instance
To subscribe with a topic filter to your HiveMQ Cloud instance, expand the Subscribe panel of the WebSocket client.
In the Subscribe panel, select Add New Topic Subscription to create your desired topic filter.
In the subscription dialog that opens, define the Color, QoS, and topic filter pattern for the subscription.
To create the subscription for your HiveMQ Cloud instance, select Subscribe.
Messages that are sent to the client for the defined topic subscription appear in the Messages panel.
For more information on MQTT over WebSockets, see the HiveMQ MQTT Essentials special edition on WebSockets.
Once you connect your first MQTT clients with your HiveMQ Cloud cluster and exchange your first MQTT messages, you are ready to scale up and dive deeper.
Learn more about the options HiveMQ Cloud offers: