|
NVIDIA DeepStream SDK API Reference
|
8.0 Release
|
Go to the documentation of this file.
13 #include "mqtt_protocol.h"
14 #include "mosquitto.h"
17 #include <unordered_map>
27 #define MAX_FIELD_LEN 1024
28 #define DEFAULT_LOOP_TIMEOUT 2000
29 #define DEFAULT_KEEP_ALIVE 60
61 struct mosquitto *mosq = NULL;
71 bool subscription_on =
false;
74 bool enable_tls =
false;
79 bool disconnect =
false;
80 bool set_threaded =
true;
85 void my_disconnect_callback(
struct mosquitto *mosq,
void *obj,
int rc,
const mosquitto_property *properties);
86 void my_connect_callback(
struct mosquitto *mosq,
void *obj,
int result,
int flags,
const mosquitto_property *properties);
87 void my_publish_callback(
struct mosquitto *mosq,
void *obj,
int mid,
int reason_code,
const mosquitto_property *properties);
#define DEFAULT_LOOP_TIMEOUT
void(* nvds_msgapi_connect_cb_t)(NvDsMsgApiHandle h_ptr, NvDsMsgApiEventType ds_evt)
Type definition for a "handle" callback.
void my_disconnect_callback(struct mosquitto *mosq, void *obj, int rc, const mosquitto_property *properties)
NvDsMsgApiErrorType
Defines completion codes for operations in the messaging API.
void mosq_mqtt_log_callback(struct mosquitto *mosq, void *obj, int level, const char *str)
NvDsMsgApiErrorType nvds_mqtt_read_config(NvDsMqttClientHandle *mh, char *config_path)
bool is_valid_mqtt_connection_str(char *connection_str, string &burl, string &bport)
std::unordered_map< int, send_msg_info_t > send_msg_info_map
void my_publish_callback(struct mosquitto *mosq, void *obj, int mid, int reason_code, const mosquitto_property *properties)
#define DEFAULT_KEEP_ALIVE
void my_connect_callback(struct mosquitto *mosq, void *obj, int result, int flags, const mosquitto_property *properties)
nvds_msgapi_subscribe_request_cb_t sub_callback
void(* nvds_msgapi_send_cb_t)(void *user_ptr, NvDsMsgApiErrorType completion_flag)
Type definition for a "send" callback.
nvds_msgapi_connect_cb_t connect_cb
void(* nvds_msgapi_subscribe_request_cb_t)(NvDsMsgApiErrorType flag, void *msg, int msg_len, char *topic, void *user_ptr)
Type definition for callback registered during subscribe.
nvds_msgapi_send_cb_t send_callback