add notes for transitioning from hbmqtt

bugfix/scripts
Florian Ludwig 2021-04-03 22:41:29 +02:00
rodzic 3739ee3c75
commit b6121d3edd
2 zmienionych plików z 36 dodań i 0 usunięć

Wyświetl plik

@ -62,6 +62,7 @@ News and updates are listed in the :doc:`changelog`.
quickstart
changelog
transition
references/index
license

Wyświetl plik

@ -0,0 +1,35 @@
Transitioning from HBMQTT to aMQTT
==================================
This document is for those porting from HBMQTT to aMQTT.
Basically you can search and replace ``hbmqtt`` with ``amqtt`` and all should work out.
Details below.
Imports
-------
The module changed from ``hbmqtt`` to ``amqtt``.
For the 0.10.x releases it will still be possible to ``import hbmqtt``.
In 0.11.x only ``amqtt`` will work.
Since the ``amqtt`` package does provide a ``hbmqtt`` module, installing the ``hbmqtt`` package in the same python installation is not possible.
Random Client ID
----------------
When not providing a client_id, a random id is automatically generated.
These names were also changed from ``hbmqtt/<random>`` to ``amqtt/<random>``.
plugins / entrypoints
---------------------
If you make use of python's entrypoint system to build aMQTT plugins, make sure to use the ``amqtt.*.plugins`` names instead of ``hbmqtt.*.plugins`` names.
During the transition plugins with ``hbmqtt`` entrypoint should keep working for 0.10.x releases.
CLI tools
---------
Will also be renamed.