Open main menu
Home
Random
Log in
Settings
COMMUNITY
ABOUT
Disclaimers
Teltonika Networks Wiki
Search
Changes
← Older edit
Newer edit →
Modbus TCP Master MQTT Gateway
(view source)
Revision as of 09:21, 31 August 2022
8 bytes removed
,
09:21, 31 August 2022
m
no edit summary
Line 200:
Line 200:
*Open first terminal, which will act as '''Subscriber'''. Type in:
*Open first terminal, which will act as '''Subscriber'''. Type in:
−
<blockquote>''
mosquito_sub
-h [Host_address] -p [Port] -t [Topic]''</blockquote>[[File:Networking MQTT Modbus Subscriber in terminal v1.png|border|class=tlt-border]]
+
<blockquote>''
mosquitto_sub
-h [Host_address] -p [Port] -t [Topic]''</blockquote>[[File:Networking MQTT Modbus Subscriber in terminal v1.png|border|class=tlt-border]]
*Open second terminal, which will act as '''Publisher.''' Type in:
*Open second terminal, which will act as '''Publisher.''' Type in:
−
<blockquote>''
mosquito_pub -h [Host]
-h [Host_address] -p [Port] -m [‘Message’] -t [Topic]''</blockquote>[[File:Networking MQTT Modbus Publisher testing v1.png|border|class=tlt-border]]
+
<blockquote>''
mosquitto_pub
-h [Host_address] -p [Port] -m [‘Message’] -t [Topic]''</blockquote>[[File:Networking MQTT Modbus Publisher testing v1.png|border|class=tlt-border]]
*On the first window - '''Subscriber''', a response should appear
*On the first window - '''Subscriber''', a response should appear
Karolis.t
Administrators
226
edits