axlPointer myqtt_storage_store_msg_offline ( MyQttCtx ctx,
const char *  client_identifier,
int  packet_id,
MyQttQos  qos,
unsigned char *  app_msg,
int  app_msg_size 
)

Allows to storage the provided message on the local session storage associated to the provided connection.

Parameters
ctxThe context where the operation takes place.
client_identifierThe client id for which the operation is requested.
packet_idThe packet id associated to the message.
qosThe QoS of the operation requested.
app_msgThe application message to store.
app_msg_sizeThe size of the application message to store.
Returns
The function return NULL on failure and a handler that points to the message stored.

References MYQTT_QOS_SKIP_STOREAGE_NOTIFY, myqtt_storage_init_offline(), and myqtt_support_build_filename().

Referenced by myqtt_conn_offline_pub(), and myqtt_storage_store_msg().