Skip to content

Add functionality to reset flag isConnected if keepalive is failing.#158

Open
BrianCronauer wants to merge 1 commit intoWiznet:masterfrom
BrianCronauer:CR_DetectDisconnect
Open

Add functionality to reset flag isConnected if keepalive is failing.#158
BrianCronauer wants to merge 1 commit intoWiznet:masterfrom
BrianCronauer:CR_DetectDisconnect

Conversation

@BrianCronauer
Copy link

This change should handle the situation that if MQTT client is connected to MQTT broker, and doesn't receive feedback from the broker during keep alive handling, that the flag isConnected is set back to 0. By having this an application has better knowledge by checking the flag, if still connected to the broker and can react.

In current implementation, what I tested, the application cannot detect this, and trying to publish new messages will fail.

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