Modbus?? old school protocol (more than 40th years).
when Modbus created, it was created for Serial communication via RS485. after year by year, technology was changing and ethernet / TCP widely used in PLC and industrial control system, then Modbus move their medium to Ethernet and wrap their message in TCP (encapsulated) over ethernet.
Now, when everything going to the cloud or RTU/PLC are not in the same place with SCADA and it only have internet connection, it will be hard and expensive for Modbus to keep exist in Internet area. because we need at least public IP for each device, or creating VPN.
but with MQTT the message can be send over the broker (on the cloud), so it will be exiting if modbus can be sent through MQTT.
if you’ve heard about Node-red this is cool IoT tools/platform built in NodeJS.
I’m using Node-red to make it’s encapsulation, and Modscan as Modbus Master (or SCADA), and Modsim as Modbus Slave (or PLC)—Read full article……