Teltonika RUT955 User Manual page 122

Lte router
Hide thumbs Also See for RUT955:
Table of Contents

Advertisement

RUT955 User's Manual
In order for the system to work, the MQTT broker should be configured in advance. You can use the Broker that is
installed in the router or another, independent Broker. Shown below is a scheme where the client tries to subscribe for
information about the router's uptime. To achieve this, multiple commands between the client and the publisher are
being sent.
Subscribe router/get
Subscribe
get/01234567/command
Publisher
Publish router/id
01234567
Publish router/01234567/uptime 15248
In general the publisher works in this way: the publisher connects to the broker and subscribes to the topics
router/get and get/<SERIAL>/command. <SERIAL> denotes the serial number of the client's router. The client then
sends a message id to the topic router/get. The following message is received by the publisher, since it is subscribed to
that topic. Then the publisher sends a response with its serial number to the topic router/id. Now the client knows that
a publisher with some serial number exist. It means that the client can send a message with the parameter name from
the list as a message to the topic get/<SERIAL>/command to the Broker. The message will be received only by the
subscriber, which has the same SERIAL number mentioned in the topic. Now the publisher can send a response back
with router/<SERIAL>/parameter_name topic and a message with the value of the requested parameter. It should be
noted that, according to the MQTT protocol, topic names are case-sensitive, for example topic router is not the same as
topic RoUtEr.
Teltonika Solutions
Publish router/get
id
Publish get/01234567/command
uptime
Broker
Client
122

Advertisement

Table of Contents
loading

Table of Contents