You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using apollo broker and libmosquitto C library to connect with the broker. Whenever I try to publish any message to the broker, the following error message is recorded in logs in my brokers home directory.
Following is the code snippet that i have been using
The weird thing is when i use the above program independently, it works fine but currently some other function in some other file is calling senddata_mqtt and in that case it throws the error which I stated above. Please help me know what is going on here.
The text was updated successfully, but these errors were encountered:
I am using apollo broker and libmosquitto C library to connect with the broker. Whenever I try to publish any message to the broker, the following error message is recorded in logs in my brokers home directory.
Following is the code snippet that i have been using
void on_publish(struct mosquitto *mosq, void *userdata, int mid)
{
log_print("mqtt",1,"Inside publish callback");
}
int sendData_mqtt(char *address, char *port,char *url,char *data) {
int err;
char *clean_session = "true";
char *retain_flag = "true";
int port1 = atoi(port);
struct mosquitto *mosq;
}
The weird thing is when i use the above program independently, it works fine but currently some other function in some other file is calling senddata_mqtt and in that case it throws the error which I stated above. Please help me know what is going on here.
The text was updated successfully, but these errors were encountered: