Skip to content

Commit

Permalink
Merge pull request #817 from clmcavaney/minor-doco-update
Browse files Browse the repository at this point in the history
fix to reflect new method
  • Loading branch information
PierreF authored Feb 25, 2024
2 parents 4eeb431 + acda242 commit 6135207
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/migrations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ But if you had comparison with other value, you will need to update the code. It

# NEW code
def on_connect(client, userdata, flags, reason_code, properties):
if rc == "Unsupported protocol version":
if reason_code == "Unsupported protocol version":
# handle bad protocol version
if rc == "Client identifier not valid":
if reason_code == "Client identifier not valid":
# handle bad identifier

on_disconnect
Expand Down

0 comments on commit 6135207

Please sign in to comment.