Skip to content

Commit bffe8e3

Browse files
authored
Merge pull request #823 from RichieB2B/migrations
fix some sentences in migrations.rst
2 parents 6135207 + 8a99b35 commit bffe8e3

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

docs/migrations.rst

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,24 @@ The list of breaking change (detailed below) are:
2323
Versioned the user callbacks
2424
****************************
2525

26-
Version 2.0 of paho-mqtt introduced versioning of user-callback. To fix some inconsistency in callback
27-
arguments and to provide better support for MQTTv5, version 2.0 changed the arguments passed to user-callback.
26+
Version 2.0 of paho-mqtt introduced versioning of the user-callback. To fix some inconsistency in callback
27+
arguments and to provide better support for MQTTv5, version 2.0 changed the arguments passed to the user-callback.
2828

29-
You can still use old version of callback, you are just require to tell paho-mqtt that you opt for this
29+
You can still use the old version of the callback, you are just required to tell paho-mqtt that you opt for this
3030
version. For that just change your client creation from::
3131

3232
# OLD code
3333
>>> mqttc = mqtt.Client()
3434

35+
to::
36+
3537
# NEW code
3638
>>> mqttc = mqtt.Client(mqtt.CallbackAPIVersion.VERSION1)
3739

3840

39-
That it, remaining of the code could stay unchanged.
41+
That's it, the remaining of the code can stay unchanged.
4042

41-
The version 1 of callback is deprecated, but is still supported in version 2.x. If you want to upgrade to newer version of API callback, you will need to update your callbacks:
43+
Version 1 of the callback is deprecated, but is still supported in version 2.x. If you want to upgrade to the newer version of the API callback, you will need to update your callbacks:
4244

4345
on_connect
4446
``````````

0 commit comments

Comments
 (0)