paho.mqtt.python icon indicating copy to clipboard operation
paho.mqtt.python copied to clipboard

Update documentation/comments for `connect()` ref blocking

Open MattBrittan opened this issue 4 years ago • 0 comments

Update documentation/comments to clarify when the connect() function returns. The function returns after transmitting the CONNECT packet but before the CONNACK is received/processed (this is done in the network loop). There are a number of issues (both on github and stack overflow) caused by an expectation that the connection is fully established when connect() returns.

As per discussion in issue #521

MattBrittan avatar Oct 29 '21 05:10 MattBrittan