MQTT Server (Mosquitto) Installation and UWB Gateway Connection
This guide shows how to connect the GrowSpace Gateway Q1 to a private Mosquitto MQTT broker, receive tag and anchor position data directly, and check it in MQTT-Studio.

About this article
This article explains how to connect the GrowSpace Gateway Q1 to a private MQTT broker (Mosquitto), receive real-time position data from tags and anchors directly, and check it visually in MQTT-Studio.
By default, the gateway connects to the GrowSpace server.
For internal tests or integration with an external system, you can set up the environment easily with Mosquitto.
What is Mosquitto?
Mosquitto is an open-source message broker that works on the MQTT (Message Queuing Telemetry Transport) protocol.
MQTT is a lightweight communication protocol widely used in IoT (Internet of Things) environments. It handles real-time messaging between devices very efficiently.
Mosquitto has these characteristics:
- It is light and simple to install and configure.
- It runs reliably even when hundreds to thousands of devices connect at the same time.
- It works over TCP/IP, and authentication and encryption can also be configured.
The GrowSpace Gateway Q1 sends data over the MQTT protocol by default. With Mosquitto, you can receive and process the data in your own server environment, without a separate cloud.
Install and configure the Mosquitto MQTT broker
Install Mosquitto
- Download the Windows installer from the official Mosquitto page.

- After installation, the default path is:
C:\Program Files\mosquitto
Edit the configuration file
- Open the configuration file at the path below with Notepad or VS Code:
C:\Program Files\mosquitto\mosquitto.conf
- Add the two lines below, each under the matching entry:
- Search for the
#listenerentry, then add the following line under it:
listener 1883 0.0.0.0
\* Search for the #allow_anonymous entry, then add the following line under it:
allow_anonymous true
🔸 The
listenerentry sets the port that accepts connections from external devices.
🔸allow_anonymous trueallows connections without user authentication.⚠️ This is a test configuration. In production, set up user authentication and access restrictions.
Leave the existing #listener and #allow_anonymous false lines as they are, still commented out (#).
The settings that take effect are the two lines you just added.
- After saving, restart Mosquitto or reboot the PC.
With this setting, external devices (such as the GrowSpace gateway) can connect to the Mosquitto broker.
Open the MQTT port in Windows Firewall
For the Mosquitto broker to communicate with external devices (such as the GrowSpace gateway), TCP port 1883 must be allowed in the firewall.
Add an inbound rule with the following steps.
How to add a firewall rule
Click the Start button → type firewall → open Windows Defender Firewall

Select Advanced settings in the left menu

Click Inbound Rules in the left menu → select New Rule on the right

Select Port as the rule type → Next

Protocol and Ports
Protocol: TCP
Specific local ports: 1883 → Next

Action
Select Allow the connection → Next

Profile
Check all of Domain / Private / Public → Next

Name
Allow Mosquitto MQTT → Finish

When the setup is complete, restart the computer to apply it.
If the port is not open correctly, the gateway cannot send data to the MQTT broker.
If the connection fails during testing, check the firewall settings again.
Install MQTT-Studio and connect to the broker
Why do you need this tool?
MQTT-Studio is a visualization tool that connects to the Mosquitto broker so you can check in real time whether position data is being sent correctly.
- View MQTT messages sent from the gateway right away
- Start, Config and Devices data are easy to read, separated by topic
- Useful for development, debugging and demos
Installation steps
Open the Microsoft Store from the Windows taskbar

Type "MQTT-Studio" in the search box at the top

Select MQTT-Studio from the list and click [Install]
When the installation is complete, run the program.
Broker connection settings
Run MQTT-Studio, then click the [New Project] button in the left menu.
Enter the following items:

| Item | Description |
|---|---|
| Project name | Any name you like (example: growspace-test) |
| MQTT Broker | The IP address of the PC where Mosquitto is installed (Windows CMD → ipconfig → check the IPv4 address) |
| Port | 1883 (keep the default) |
| Client ID | Any ID that is not used elsewhere (example: testclient1) |
| Username / Password | You can leave these empty if you made no separate setting |
In a setup behind the same router (internal network), entering the IP address is enough to connect.
To connect from an external network (the internet), you need to set up port forwarding on the router of the PC where the broker is installed:
forward TCP 1883 → internal IP
Check the connection
After entering all items, click the [Connect] button.
When the connection succeeds, the CONNECT button at the top of the screen becomes active.

Environment setup complete
You have now installed the Mosquitto broker, set up the port, and visualized data with MQTT-Studio. With this, your environment can receive the UWB position data collected by the GrowSpace Gateway Q1 on your own broker.
In the next step, set up the gateway device and continue with sending position data.