Return to cmds.c CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / mqtt / example |
version 1.1.2.18, 2011/12/09 11:46:48 | version 1.2, 2012/01/27 15:05:38 |
---|---|
Line 20 main() | Line 20 main() |
m = mqtt_msgAlloc(0); | m = mqtt_msgAlloc(0); |
/* conn* */ | /* conn* */ |
printf("connect=%d/%d\n", m->msg_len, mqtt_msgCONNECT(m, "MRYN", "aaaaa", NULL, "bbb", NULL, 0, 0, 0)); | printf("connect=%d/%d\n", m->msg_len, mqtt_msgCONNECT(m, "MRYN", 0, "aaaaa", NULL, "bbb", NULL, 0, 0, 0)); |
for (i = 0; i < m->msg_len; i++) | for (i = 0; i < m->msg_len; i++) |
printf("%d\n", ((u_char*) m->msg_base)[i]); | printf("%d\n", ((u_char*) m->msg_base)[i]); |
t = msg = NULL; | t = msg = NULL; |