HiveMQ Cloud is an IoT platform using the MQTT protocol. You can create a cluster using HiveMQ Console and connect with a web client.
In order to use the MQTT protocol on the Kuika platform, you need to create a user on HiveMQ and obtain the necessary connection information. You will use the username and password you created when adding MQTT in Kuika.
You can do this step by step as follows:
1. Login to HiveMQ Cloud Console
- Navigate to HiveMQ Cloud Console in your browser.
- If you do not have an account, click on the “Sign Up” button to register.
- If you have an account, log in by clicking the “Login” button. Access the HiveMQ Console by entering your username and password.
2. Create a New Cluster
- After logging in, go to the “Clusters” section on the main page.
- Click on “Create Cluster”.
- Give a name for the cluster (for example “MyFirstCluster”).
- Select the location of the cluster. For example, “Europe” or “North America”.
- You can choose a free plan (Free Plan) or a paid plan according to your needs.
- After confirming the settings, click on the “Create” button. The cluster will be created and will provide the necessary information for you to connect.
3. Connecting with Web Client
- Once the cluster has been created, find the “Web Client” tab in the left menu in the HiveMQ Cloud Console and click on it.
- When the Web Client opens, you will need to fill in the following information to connect:some text
- Host: The connection URL given when creating the cluster (usually *.hivemq.cloud).
- Port: 8883 (SSL) or 1883 (for unsecured connections).
- Client ID: A unique ID must be used for each connection; a random ID can be entered.
- Username and Password: Enter the username and password you created on the HiveMQ Cloud Console.
- After entering all the information, click the “Connect” button.
- Once connected, you can start sending and receiving messages over MQTT. Once connected, you can publish (publish) or listen (subscribe) to messages on a specific topic.