void myqtt_ctx_set_on_unsubscribe ( MyQttCtx ctx,
MyQttOnUnSubscribeHandler  on_unsubscribe,
axlPointer  on_unsubscribe_data 
)

Allows to configure a handler that will be called every time an unsubscription indication is received.

The function must return the axl_true to accept the unsuback operation but certainly it can return axl_false to ignore the indication. However, it is important to understand that this is not covered by the MQTT standard: you have to accept this indication (it's not a request), though you ignore this request in the case you are building a specific scenario.

Only one handler can be configured at time.

Parameters
ctxThe context where the operation takes place.
on_unsubscribeThe handler to be called when an unsuback is received. See MyQttOnUnSubscribeHandler for more information.
on_unsubscribe_dataA user defined pointer to be passed to the handler configured when it is called.

References myqtt_mutex_lock(), and myqtt_mutex_unlock().