diff --git a/libraries/mqtt.xml b/libraries/mqtt.xml
index 57f73e5c..6a07e76c 100644
--- a/libraries/mqtt.xml
+++ b/libraries/mqtt.xml
@@ -1 +1 @@
-Connect to a broker
The options are not required but can be filled if needed
1. username (some brokers need this)
2. password (some brokers need this)
3. keepalive (default time is 60 seconds but some brokers need a shorter time)
4. connection callback (ringed set of scripts to be run when connection is made or remade)
Note: The connection callback doesn''t have to be the 4th option - it just has to be the last (or only) option.
ADVANCED: The brokers offered in the menu are accessed using default ports and basepaths (if needed). If accessing other brokers, the complete urls should be formed like this:
siteURL:port/basepath
e.g mqtt.eclipseprojects.io:443/mqtt
broker.emqx.iobroker.emqx.io
mqtt.eclipseprojects.io
test.mosquitto.org
broker.xmqtt.netconnection statuscallbackconnection statusconnectingcallbackoptionsusername1password2keepalive3mqt_connect(broker,callback,options)connectingconnectedPublish a message to an MQTT broker
The options are not required but can be filled if needed
1. qos (quality of service 0,1 or 2)
2. retain flag (boolean)
broker.emqx.iobroker.emqx.io
mqtt.eclipseprojects.io
test.mosquitto.org
broker.xmqtt.netnamehellooptionsqos1retain2mqt_pub(broker,topic,payload,options)Subscribe to a topic on a broker
Make sure you have already run an MQTT connect block before using this one
You should add a script to be run inside he grey ring.
It will be run each time a message is received
If you click on the arrow on the grey ring twice, you can use #1 and #2 inside yoiru script.
#1 will contain the received message
#2 will contain the received topic namebroker.emqx.iobroker.emqx.io
mqtt.eclipseprojects.io
test.mosquitto.org
broker.xmqtt.netnamebroker.emqx.iobroker.emqx.io
mqtt.eclipseprojects.io
test.mosquitto.org
broker.xmqtt.netnameallall
broker.emqx.io
mqtt.eclipseprojects.io
test.mosquitto.org
broker.xmqtt.netbroker.emqx.iobroker.emqx.io
mqtt.eclipseprojects.io
test.mosquitto.org
broker.xmqtt.netnamereceived messagereceived topicbroker.emqx.iobroker.emqx.io
mqtt.eclipseprojects.io
test.mosquitto.org
broker.xmqtt.netnameidCallhelloreceived payloadreceived topic/idCall-namehellobroker.emqx.iobroker.emqx.io
mqtt.eclipseprojects.io
test.mosquitto.org
broker.xmqtt.netnameidCallhelloreceived messagereceived topic/idCall-1
+Connect to a broker
The options are not required but can be filled if needed
1. username (some brokers need this)
2. password (some brokers need this)
3. keepalive (default time is 60 seconds but some brokers need a shorter time)
4. connection callback (ringed set of scripts to be run when connection is made or remade)
Note: The connection callback doesn''t have to be the 4th option - it just has to be the last (or only) option.
ADVANCED: The brokers offered in the menu are accessed using default ports and basepaths (if needed). If accessing other brokers, the complete urls should be formed like this:
siteURL:port/basepath
e.g mqtt.eclipseprojects.io:443/mqtt
broker.emqx.iobroker.emqx.io
mqtt.eclipseprojects.io
test.mosquitto.org
broker.xmqtt.netconnection statuscallbackconnection statusconnectingcallbackoptionsusername1password2keepalive3mqt_connect(broker,callback,options)connectingconnectedPublish a message to an MQTT broker
The options are not required but can be filled if needed
1. qos (quality of service 0,1 or 2)
2. retain flag (boolean)
broker.emqx.iobroker.emqx.io
mqtt.eclipseprojects.io
test.mosquitto.org
broker.xmqtt.netnamehellooptionsqos1retain2mqt_pub(broker,topic,payload,options)Subscribe to a topic on a broker
Make sure you have already run an MQTT connect block before using this one
You should add a script to be run inside he grey ring.
It will be run each time a message is received
If you click on the arrow on the grey ring twice, you can use #1 and #2 inside your script.
#1 will contain the received payload
#2 will contain the received topic namebroker.emqx.iobroker.emqx.io
mqtt.eclipseprojects.io
test.mosquitto.org
broker.xmqtt.netnamebroker.emqx.iobroker.emqx.io
mqtt.eclipseprojects.io
test.mosquitto.org
broker.xmqtt.netnameallall
broker.emqx.io
mqtt.eclipseprojects.io
test.mosquitto.org
broker.xmqtt.netbroker.emqx.iobroker.emqx.io
mqtt.eclipseprojects.io
test.mosquitto.org
broker.xmqtt.netnameerr_resetcallbackTopic@received payloadreceived topicbroker.emqx.iobroker.emqx.io
mqtt.eclipseprojects.io
test.mosquitto.org
broker.xmqtt.netnamename2helloreceived payloadreceived topic/@hellonameThe response topic should be a unique value for each call e.g. use timer
There is only 1 option at present
1. Timeout value - default is 3 secondsbroker.emqx.iobroker.emqx.io
mqtt.eclipseprojects.io
test.mosquitto.org
broker.xmqtt.netnamename2helloreceived payloadreceived topic/@timer011000