-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add Connection error callback to fix issue 1148 #1442
base: master
Are you sure you want to change the base?
Add Connection error callback to fix issue 1148 #1442
Conversation
Signed-off-by: Ivan Bolshakov <[email protected]>
Looks good to me! |
Do we want to consider adding this to |
I have tested this and confirmed it to work. I created initial support on the C++ client for using this API: https://github.com/fireflyautomatix/paho.mqtt.cpp/tree/connection-error-callback |
I don't think we want to add it to set callbacks, as that would cause some backward incompatibilities which we could manage, but is more complicated. As it is, as it is an interface change, I think it has to go into the 1.4 stream. |
Added a callback message with an error connecting to the broker. This message is sent during all connection and reconnection attempts (including automatic reconnection attempts).
This MR solves problems #1148 and #1360
Signed-off-by: Ivan Bolshakov [email protected]