Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

boost::mqtt5::mqtt_client::will
PrevUpHomeNext

Assign a will Message.

Synopsis
boost::mqtt5::mqtt_client&
will(
    boost::mqtt5::will will);
Description

The will Message that the Broker should publish after the Network Connection is closed and it is not closed normally.

Attention

This function takes action when the client is in a non-operational state, meaning the async_run function has not been invoked. Furthermore, you can use this function after the cancel function has been called, before the async_run function is invoked again.


PrevUpHomeNext