net: mqtt: add user_data in mqtt client
add user_data to mqtt client to store application related info Signed-off-by: Karthikeyan Krishnasamy <karthikeyan@linumiz.com>
This commit is contained in:
parent
6b159c1221
commit
fc5ae0c165
|
@ -558,6 +558,9 @@ struct mqtt_client {
|
|||
* Default is CONFIG_MQTT_CLEAN_SESSION.
|
||||
*/
|
||||
uint8_t clean_session : 1;
|
||||
|
||||
/* Userdata */
|
||||
void *user_data;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue