Build Your Own MQTT Server: Subscribe to UWB Gateway Data
This guide shows how to connect to a Mosquitto broker with MQTT-Studio and subscribe to the real-time UWB position data sent by the GrowSpace gateway.

About this article
This article shows how to use MQTT-Studio to connect to a Mosquitto broker and subscribe to the real-time UWB position data sent by the GrowSpace gateway.
If you want to connect the position data of tags and anchors to a server or cloud system through an MQTT broker, set up the MQTT subscription environment by following this article. Later data integration then becomes much easier.
⚠️ If you are installing or configuring an MQTT server (Mosquitto broker) initially,
please read the document below to prepare the server environment.
Go to the MQTT server setup guide
Even before the server is built,
you can set up a test environment with MQTT-Studio separately.
We recommend following this article to get used to connecting to a broker and subscribing to data.
Create an MQTT-Studio project
Create a project
- Run MQTT-Studio.
- Click New Project in the left menu.

- Enter the following items.
| Item | Description |
|---|---|
| Project name | Project name (example: growspace-test) |
| MQTT Broker | IP address of the PC where the Mosquitto broker is installed |
| Port | Keep the default 1883 |
| Client ID | Any name that is not used elsewhere (example: testclient1) |
| Username / Password | Enter them according to the broker settings. Leave empty if there are none |
When you connect from within the same network, entering the IP address is enough.
For external access, you need port forwarding for port 1883 on the router.⚠️ This is a test configuration. In production, set up user authentication and access restrictions.

- When the connection completes normally, the status at the top right changes to CONNECT.

How to find the IP address (Windows)
- Type
cmdin the Windows search box and run Command Prompt - Type the
ipconfigcommand and press Enter

- In the output, check the value of the
IPv4 Addressentry
Example:192.168.0.101

- This address is the IP to enter in the MQTT Broker item.
Subscribe to gateway data topics
After you connect to the Mosquitto broker, subscribe to topics in MQTT-Studio so that it can receive position data.
- Click the + button at the top right.
- Add each of the 3 topics below.
| Topic | Description |
|---|---|
uwb/gateway/start/# | Status information when the gateway boots |
uwb/gateway/config/# | Gateway configuration information, such as settings and measurement interval |
uwb/gateway/devices/# | Real-time position data of tags and anchors |
The
#symbol subscribes to all lower-level data under that path.
TheprojectIdin the topic structure is based on the API key issued on the GrowSpace web settings page.

Save the project
When you finish adding topics, click Save Project in the top left menu to save the settings.
Later, you can use Open Project to reconnect quickly with the same settings.
Set up the gateway and send data
With the GrowSpace settings web page, you can configure the Gateway Q1 device to send data to your private Mosquitto broker.
Setup steps
- Connect power to the gateway.

- Run the Chrome browser and open the web page below.
[To be confirmed] - Go to the Gateway settings menu in the top menu of the page.
- Enter the following items.
| Item | Description |
|---|---|
| Wi-Fi Name / Password | Enter the 2.4GHz Wi-Fi information (5GHz is not supported) |
| MQTT IP | Enter the IP address of the PC where the Mosquitto broker is installed |

- After entering all items, click the Save button. The gateway restarts automatically.
It then starts sending data to the MQTT broker you set.
5. Check data reception in MQTT-Studio
When the gateway setup is complete, real-time position data starts to appear in MQTT-Studio automatically.
Below is an example of a message that is actually received.
Topic: uwb/gateway/devices/project-1234/TAG-001
{
"tagId": "TAG-001",
"x": 12.34,
"y": 56.78,
"z": 1.23,
"timestamp": 1723850283
}
With this data, you can check the position of a tag or connect it to a real-time monitoring system.
