Closed fahadalisarwar1 closed 7 months ago
It's telling you the reason:
TypeError: on_connect() missing 1 required positional argument: 'return_code'
your on_connect() function (which you didn't include) doesn't have the right number of parameters.
Closing this as Peters comment looks good and there has been no activity since. Please feel free to reopen if you are still having issues.
here is my code.
As soon as it reaches the lines client.loop_forever(), it crashes with following code.
Can please somebody tell me the reason.