How to create an MQTT Gateway?

How to create an MQTT Gateway?

The MQTT gateway will allow you to get data coming from a Box/Hub direclty in your MQTT broker.



MQTT Gateway configuration:

First of all, you'll need to create a new gateway:



Then you will have to fill the blanks with your MQTT broker parameters:



NB: Please make sure that the MQTT server is not using a self signed certificate

Topic configuration:

Here is the format your broker MQTT will received:
Uplink Topic Format:
[{"propertyId":"Topic/Exemple1","timestamp":1608652394220.0,"value":12},{"propertyId":"Topic/Exemple2","timestamp":1608652394222.0,"value":123456}]
Here is format that you will to respect to send a command:
Downlink Topic Format:
{"propertyId":"SlugMQTT","requestType":"write","value":XX}


NB: SlugMQTT is the uniqueID of a variable, you'll find it in the property configuration itself


If you want to modify your MQTT Slug, you will be able to do that in the MQTT Gateway configuration itself:



The Red square will allow you to choose the discriminators that will be used for all MQTT Slug property.
In this case for example:
Protocol: lorawan_V1_0
Property Slug: battery-level-3oyd4fw41v
Equipment Discriminator (DevEUI): 0018b22000002b98


MQTT Gateway property configuration:


To add properties to your gateway, select the properties button:



Then add Property:



On the next view you'll have the choice between all the properties available, select the one you want to redirect to your MQTT broker and click on save



Once the properties select, you'll have that kind of view:



NB : Be sure that the Access Type stay as LOCAL in this configuration.

If you need any additionnal information, please contact us at : support@wattsense.com


    • Related Articles

    • How to configure my Bacnet gateway?

      Here you will have a video that will show you how to create your bacnet gateway:
    • How to configure my ModbusIP gateway?

      Purpose of the Modbus IP Gateway: The Modbus IP gateway is designed to act as a Server in a Modbus IP network. Schematic: Step 1: First of all, you'll need to create a new gateway Step 2: Then set up the gateway information, Important information: ...
    • MQTT and QOS

      QoS stands for : Quality of service There is 3 different QoS available for MQTT: QoS level 0 : “At most once” - The message is send without acknowledgement QoS level 1 : “At least once” - The message is send with acknowledgement QoS level 2: “Exactly ...