| Home | Libraries | People | FAQ | More

##### boost::mqtt5::mqtt_client::async_subscribe

Send a `SUBSCRIBE` packet to Broker to create a Subscription to one or more Topics of interest.

    template<
        typename CompletionToken = typename asio::default_completion_token<boost::mqtt5::mqtt_client::executor_type>::type>
    decltype(auto)
    async_subscribe(
        const std::vector< boost::mqtt5::subscribe_topic >& topics,
        const subscribe_props& props,
        CompletionToken&& token = {});
      » more...

Send a `SUBSCRIBE` packet to Broker to create a Subscription to one Topic of interest.

    template<
        typename CompletionToken = typename asio::default_completion_token<boost::mqtt5::mqtt_client::executor_type>::type>
    decltype(auto)
    async_subscribe(
        const boost::mqtt5::subscribe_topic& topic,
        const subscribe_props& props,
        CompletionToken&& token = {});
      » more...