Skip to content

Commit

Permalink
fix to reflect new method
Browse files Browse the repository at this point in the history
  • Loading branch information
clmcavaney committed Feb 25, 2024
1 parent 4eeb431 commit acda242
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 acda242

Please sign in to comment.