Changes

m
test 26996
Line 145: Line 145:  
=== Configuring Modbus TCP Master, MQTT Gateway MQTT Broker on RUT240 and MQTT Publisher/Subscriber on PC ===
 
=== Configuring Modbus TCP Master, MQTT Gateway MQTT Broker on RUT240 and MQTT Publisher/Subscriber on PC ===
 
''Same configuration will be used for Modbus TCP Master and Slave RUT955 routers as in previous example, only settings in Modbus TCP Master router RUT955 will be changed to match MQTT Broker on RUT240 router''
 
''Same configuration will be used for Modbus TCP Master and Slave RUT955 routers as in previous example, only settings in Modbus TCP Master router RUT955 will be changed to match MQTT Broker on RUT240 router''
 +
 +
Navigate to '''Services > Modbus > MQTT Gateway'''
 +
 +
# '''Enable'''
 +
# Host: '''Enter Public IP address of MQTT Broker (RUT240)'''
 +
# Username: '''N/A'''
 +
# Password: '''N/A'''
 +
# Press '''Save & Apply'''
 +
 +
[[File:Networking MQTT Modbus MQTT gateway config v1.png|border|1130x1130px]]
 +
 +
=== Configuring RUT240 MQTT Broker ===
 +
 +
 +
Navigate to '''Services > MQTT > Broker'''
 +
 +
# Select '''Enable'''
 +
# Check '''Enable Remote Access'''
 +
# Press '''Save & Apply'''
 +
 +
[[File:Networking MQTT Modbus MQTT Broker RUTos config v1.png|border|1133x1133px]]
 +
 +
=== Testing MQTT Gateway ===
 +
 +
 +
For testing purposes, two terminal windows will be used on the same PC.
 +
 +
''To get Ubuntu terminal  on Windows 10/11, refer to the following link for instructions:'' https://tutorials.ubuntu.com/tutorial/tutorial-ubuntu-on-windows#0
 +
 +
* Open first terminal, which will act as '''Subscriber'''. Type in:
 +
 +
<blockquote>''mosquito_sub -h [Host_address] -p [Port] -t [Topic]''</blockquote>

Navigation menu