PrevUpHomeNext
mqtt_client::cancel

Cancel all asynchronous operations. This function has terminal effects.

void cancel();
Description

All outstanding operations will complete with boost::asio::error::operation_aborted.

[Important] Important

This function has terminal effects and will close the Client. The Client cannot be used before calling mqtt_client::async_run again.


PrevUpHomeNext