Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MQTT Client does not reconnect #1

Closed
bblacey opened this issue Sep 2, 2016 · 0 comments
Closed

MQTT Client does not reconnect #1

bblacey opened this issue Sep 2, 2016 · 0 comments

Comments

@bblacey
Copy link
Collaborator

bblacey commented Sep 2, 2016

There is an invalid assumption that client:publish() returns an error if the client fails to publish a message to the mqtt broker. As a result, the vera client never reconnects to the broker because the tests for ~= nil after invoking :publish() never hold true.

It seems the lua mqtt client is not only incomplete, there is no one actively developing it any more therefore a quick and dirty fix that should work is to simply return the result of the client:message_write() from the client:publish() method.

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

No branches or pull requests

1 participant