Add support for Mqtt protocol version 5 (#82260)
This commit is contained in:
parent
b5390f55ce
commit
b717da879f
4 changed files with 62 additions and 6 deletions
|
@ -683,7 +683,11 @@ def try_connection(
|
|||
result: queue.Queue[bool] = queue.Queue(maxsize=1)
|
||||
|
||||
def on_connect(
|
||||
client_: mqtt.Client, userdata: None, flags: dict[str, Any], result_code: int
|
||||
client_: mqtt.Client,
|
||||
userdata: None,
|
||||
flags: dict[str, Any],
|
||||
result_code: int,
|
||||
properties: mqtt.Properties | None = None,
|
||||
) -> None:
|
||||
"""Handle connection result."""
|
||||
result.put(result_code == mqtt.CONNACK_ACCEPTED)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue