docs: update MQTT documentation

Reflect the new behavior of wait_connection()

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan 2021-06-28 19:56:15 -04:00
parent ecc0fbdae9
commit 77052e15b0
2 changed files with 6 additions and 3 deletions

View File

@ -316,9 +316,11 @@ otherwise.
#### *MQTTClient.wait_connection(timeout=None)* #### *MQTTClient.wait_connection(timeout=None)*
Blocks until a connection with the broker has been successfully established. Blocks until a connection with the broker has been successfully established
If the optional `timeout` argument is specified then `asyncio.TimeoutError` or until the specified timeout has exceeded. Returns true if the connection
will be raised if the timeout has exceeded. was successful established, or False on timeout. If no timeout is specified
then this method will block indefinitely until a connection has been
established.
#### *MQTTClient.publish_topic(topic, payload=None, qos=None, retain=False)* #### *MQTTClient.publish_topic(topic, payload=None, qos=None, retain=False)*

View File

@ -482,6 +482,7 @@ It is also possible for other components within Moonraker to use MQTT to
publish and subscribe to topics. publish and subscribe to topics.
```ini ```ini
[mqtt]
address: address:
# Address of the Broker. This may be a hostname or IP Address. This # Address of the Broker. This may be a hostname or IP Address. This
# parameter must be provided. # parameter must be provided.