UWB Q1

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.

Build your own server, project creation screen 1

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

Build your own server, project creation screen 1

ItemDescription
Project nameProject name (example: growspace-test)
MQTT BrokerIP address of the PC where the Mosquitto broker is installed
PortKeep the default 1883
Client IDAny name that is not used elsewhere (example: testclient1)
Username / PasswordEnter 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.

Build your own server, project creation screen 2

Build your own server, project creation screen 3


How to find the IP address (Windows)

Build your own server, finding the IP address (Windows), screen 4

Build your own server, finding the IP address (Windows), screen 5


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.

TopicDescription
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.
The projectId in the topic structure is based on the API key issued on the GrowSpace web settings page.

Build your own server, subscribing to gateway data, screen 6


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

Build your own server, setup steps, screen 7

ItemDescription
Wi-Fi Name / PasswordEnter the 2.4GHz Wi-Fi information (5GHz is not supported)
MQTT IPEnter the IP address of the PC where the Mosquitto broker is installed

Build your own server, setup steps, screen 8


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.

Build your own server, 5. Check data reception in MQTT-Studio, screen 9