Aiomqtt

Latest version: v2.1.0

Safety actively analyzes 626436 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 5 of 6

0.5.0

Added

- Add support for python 3.6.
Contributed by [Derrick Lyndon Pallas (pallas)](https://github.com/pallas) in [#7](https://github.com/sbtinstruments/asyncio-mqtt/pull/7) (1/2).
- Add `client_id` and `tls_context` keyword arguments to the `Client` constructor.
Contributed by [Derrick Lyndon Pallas (pallas)](https://github.com/pallas) in [#7](https://github.com/sbtinstruments/asyncio-mqtt/pull/7) (2/2).
- Add `timeout` keyword argument to both `Client.connect` and `Client.disconnect`. Default value of `10` seconds (like the other functions).

Changed

- Propagate disconnection errors to subscribers. This enables user code to detect if a disconnect occurs. E.g., due to network errors.

0.4.0

Changed

- **BREAKING CHANGE:** Forward the [MQTTMessage](https://github.com/eclipse/paho.mqtt.python/blob/1eec03edf39128e461e6729694cf5d7c1959e5e4/src/paho/mqtt/client.py#L355)
class from paho-mqtt instead of just the `payload`. This applies to both
`Client.filtered_messages` and `Client.unfiltered_messages`.

This way, user code not only gets the message `payload` but also the `topic`, `qos` level, `retain` flag, etc.

Contributed by [Matthew Bradbury (MBradbury)](https://github.com/MBradbury) in [#3](https://github.com/sbtinstruments/asyncio-mqtt/pull/3).

0.3.0

Added

- Add `username` and `password` keyword arguments to the `Client` constructor.
Contributed by [gluap](https://github.com/gluap) in [#1](https://github.com/sbtinstruments/asyncio-mqtt/pull/1).

Fixed

- Fix log message context for `Client.filtered_messages`.

0.2.1

Fixed

- Fix regression with the `Client._wait_for` helper method introduced in the latest
release.

0.2.0

Changed

- **BREAKING CHANGE:** Replace all uses of `asyncio.TimeoutError` with `MqttError`.

Calls to `Client.subscribe`/`unsubscribe`/`publish` will no longer raise `asyncio.TimeoutError.`

The new behaviour makes it easier to reason about, which exceptions the library
throws:

- Wrong input parameters? Raise `ValueError`.
- Network or protocol failures? `MqttError`.
- Broken library state? `RuntimeError`.

0.1.3

Fixed

- Fix how keyword arguments are forwarded in `Client.publish` and `Client.subscribe`.

Page 5 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.