Merged
Merge Request #10
·
created by
deferred_connection
promise is not working because it is reset to null in the connectFailure callback. removing the set_value() from the connectFailure callback fixed the issue of subscription after promise.
Test:
start mosquitto broker and the publisher test on a remote desktop.
disable the internet connection on the subscribing desktop.
start the subscriber test on the subscribing desktop.
at this point, the mqtt client keeps returning to the connectFailure callback
enable the internet connection again.
at this point, the mqtt client returns to the connectSuccess callback. subscriptions are activated and data is coming in.
From
feat/sridder/deferred_connection
into
development
-
mentioned in commit bbfaa0f8b285117af067929ee8bf08397df974c8
-
Status changed to merged
-
…k. removing the set_value() fixed the issue ofsubscription after promise.