You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: