Industrial
Electronic Devices
ADFweb.com S.r.l.
User Manual
LoRaWAN Gateway / MQTT
Document code: MN67F36_ENG Revision 1.000 Page 19 of 35
Figure 3e: “Set Communication
MQTT” window
MQTT:
This section is used to define the main parameters of MQTT line. The means of the
fields are:
In the field “
Server URL
” the URL or the IP Address of the MQTT Server is
defined;
In the field “
Server Port
” the port used for MQTT communication is defined;
In the field “
Client ID
” the Client ID of the converter is defined (if ned);
In the field “
Keep Alive (seconds)
” the delay with which the Keep Alive
message is sent on MQTT is defined;
If the field “
Clean Session
” is checked, the last MQTT messages are deleted
by the Server and the Client in case of missing ACK. If unchecked, the
Server and the Client hold the last MQTT messages and, in case of incorrect
disconnection or missing ACK, they try to send again them since all the ACK
messages are exchanged correctly (valid only for QoS 1 and QoS 2);
If the field “
Will Flag
” is checked, the converter will publish the Will topic at
the connection to the Server. With this feature, in case of incorrect
disconnection, the Server will publish this topic to all the MQTT Clients that
subscribed it;
In the field “
Topic Name Will
” the topic used for Will message is defined;
In the field “
Message Will
” the payload of the Will message is defined;
In the field “
Retained Will
” the converter will send the Will message with
Retain flag enabled. In this way, the Server will hold the last Will message;
In the field “
QoS Will
” the QoS type for Will message is defined;
If the field “
Publish Topic on Connection
” is checked, the converter will
publish a topic at the connection to the Server.
In the field “
Topic Name Connection
” the topic published at the connection is defined;
In the field “
Message Connection
” the payload of the connection topic is defined;
In the field “
Retained Connection
” the converter will send the connection topic with Retain flag enabled. In this way, the Server will
hold the last connection message;
Im the field “
Username
” the username for the connection to the MQTT server is defined;
In the field “
Password
” the password for the connection to the MQTT server is defined.