PrevUpHomeNext
mqtt_client::tls_context

Get the context object used in TLS/SSL connection.

template <
    typename Ctx = TlsContext,
    std::enable_if_t<!std::is_same_v< Ctx, std::monostate >, bool > = true
>
decltype(auto) tls_context();
Description
[Note] Note

This function may only be invoked when the template parameter TlsContext was configured with non-default type during the creation of a mqtt_client.

Precondition
!std::is_same_v<TlsContext, std::monostate>

PrevUpHomeNext