INNER CODE UNIT · Python
FastMQTT
sabuhish/fastapi-mqtt · fastapi_mqtt/fastmqtt.py:26
class FastMQTT:
"""
FastMQTT client sets connection parameters before connecting and manipulating the MQTT service.
The object holds session information necessary to connect the MQTT broker.
config: MQTTConfig config object
client_id: Should be a unique identifier for connection to the MQTT broker.
clean_session: Enables broker to establish a persistent session.
In a persistent session clean_session = False.
The broker stores all subscriptions for the client.
If the session is not persistent (clean_session = True).
The broker does not store anything for the client and \
purges all information from any previous persistent session.
The client_id identifies the session.
optimistic_acknowledgement: #TODO more info needed