void myqtt_conn_opts_set_will ( MyQttConnOpts opts,
MyQttQos  will_qos,
const char *  will_topic,
const char *  will_message,
axl_bool  will_retain 
)

Allows to configure Will options on the provided connection options.

Parameters
optsThe connection option where the operation will take place.
will_qosQos to be configured in the Will.
will_topicThe Will topic where the will message will be posted on abnormal connection. This value cannot be NULL or empty.
will_messageThe Will message that will be posted. This value cannot be NULL but can be empty.
will_retainThe Will retain flag configured.