• 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:<br>
    start mosquitto broker and the publisher test on a remote desktop.<br>
    disable the internet connection on the subscribing desktop.<br>
    start the subscriber test on the subscribing desktop.<br><br>
    <i> at this point, the mqtt client keeps returning to the connectFailure callback </i><br><br>
    enable the internet connection again.<br><br>
    <i> at this point, the mqtt client returns to the connectSuccess callback. subscriptions are activated and data is coming in.</i>
    
    See merge request !10
    Peter M. Groen authored
     
    Browse Code »
  • …k. removing the set_value() fixed the issue ofsubscription after promise.
    Steven authored
     
    Browse Code »