Skip to content

Add 'connected_callback' that is invoked when CONNACK is received#178

Open
MartinKlang wants to merge 1 commit into
LiamBindle:masterfrom
MartinKlang:feature/connected_callback
Open

Add 'connected_callback' that is invoked when CONNACK is received#178
MartinKlang wants to merge 1 commit into
LiamBindle:masterfrom
MartinKlang:feature/connected_callback

Conversation

@MartinKlang
Copy link
Copy Markdown
Contributor

CONNACK signals that the connection with the server has been established.

It is common to wait for CONNACK before sending e.g. subscribe requests.
In some cases it is necessary, e.g. with Thingsboard (reference).

Sometimes a dialogue is required between client and broker at connection time, which may require calling mqtt_sync(). This can safely be done from the connected callback.

CONNACK signals that the connection with the server has been established
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant