PrevUpHomeNext
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<executor_type>::type
>
decltype(auto) async_subscribe(
    const std::vector< 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<executor_type>::type
>
decltype(auto) async_subscribe(
    const subscribe_topic & topic,
    const subscribe_props & props,
    CompletionToken && token = {}
);
  » more...

PrevUpHomeNext