Mqtt- mosquitto basic function is not working

52 views
Skip to first unread message

Gopal Govindasamy

unread,
Nov 23, 2013, 7:39:51 AM11/23/13
to mq...@googlegroups.com
Hai friends,
               i dont know what i do wrong.. am new in MQTT using mosquitto ... i need to develop client application ..but basic function is not working i compile that code means no error display and no  printf including not working.pleae guide me...


 #include <stdio.h>
#include <mosquitto.h>
int main(int argc, char *argv[])
{
    char id[30];
    int i;
    char *host = "localhost";
    int port = 1883;
    int keepalive = 60;
    bool clean_session = true;
    struct mosquitto *mosq = NULL;
    int rc; 
    rc = mosquitto_lib_init(); 
    printf("Connection Starting\n");
    return 0;
}

Dougie Lawson

unread,
Nov 24, 2013, 12:56:23 PM11/24/13
to mq...@googlegroups.com
Hi Gopal,

This group is for discussions of the protocol, not the implementation of MQTT.

If you have a specific question about Mosquitto you should post it on the Mosquitto group, not here.

Regards, Dougie.
Reply all
Reply to author
Forward
0 new messages