The Berto MQTT Bridge driver allows connection to a public or private MQTT broker. The driver has connections for other Berto drivers that use MQTT messaging and IoT to control devices such as Sonoff Relays and the Homekit MQTT Bridge.
A private broker such as Mosquitto can be used to manage connections. The broker is used to send and optionally receive messages based on the Topic specified on the Properties page.
Any MQTT client can be used to send and receive messages that can be used in programming. Numerous apps are available for iPhone( iHomeTouch) and Android(MQTT Dash).
Messages received update the UPDATE, TOPIC, MESSAGE and NUMBER variables which can be used under programming. The NUMBER variable is any number specified in the MESSAGE received. You can also Publish your own messages to any Topic under programming Actions.
There are two events that are fired when a message is received. The GENERAL_MESSAGE_RECEIVED event is fired when a message is received on the one of the topics specified in the Topics property whilst the DEVICE_MESSAGE_RECEIVED is fired when a message is received on the topic from a specific bound device such as the Berto MQTT Relay.
There is also a KEEPALIVE variable which is updated every 10 seconds showing the age of the last keepalive packet received. This can be used to force a reconnection to the broker using the Restart MQTT command.