Download Print this page

RAK RAK7431 Quick Start Manual page 12

Advertisement

Documentation Center
MQTT Subscribe to Data Server
To better demonstrate the functionality we will use the Application Server Integration feature to subscribe to the
Built-In Network Server Topics, using the MQTT client, to obtain data and send instructions to the RAK7431.
To communicate with the MQTT bridge in the gateway we need to use MQTT Topic Templates.
MQTT Topic Configuration:
Application/{{application_ID}}/device/{{device_EUI}}/join
Application/{{application_ID}}/device/{{device_EUI}}/rx
Application/{{application_ID}}/device/{{device_EUI}}/tx
Application/{{application_ID}}/device/{{device_EUI}}/ack
Application/{{application_ID}}/device/{{device_EUI}}/status
1. Download and install
MQTTfx tool
2. After installation, the MQTT Client must be configured. Select local mosquitto from the drop-down list and click
the edit connection profiles icon marked in the image below to open the settings page.
3. On the next window, input the Broker Adress and Broker Port. If the Client ID is empty press Generate. Then
click OK.
Broken Address: Address of MQTT server – the gateway IP.
Broker Port: Consistent with MQTT Broker Port set by the gateway - by default 1883.
Figure 15: Gateway MQTT Topic Templates
to read the topics and send data to the gateway and node.
Figure 16: MQTT.fx Client
sh

Advertisement

loading