void myqtt_tls_opts_set_server_name ( MyQttConnOpts opts,
const char *  serverName 

Allows to set the serverName indication (SNI) that is going to be used by the client connection created using the provided connection options object.

This function allows to configure the serverName indication that is sent at TLS connection time.

optsThe connection options that will be configured.
serverNamethe serverName to configure. Keep in mind that the remote side may deny accepting the connection under the serverName requested.