Return to cmds.c CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / mqtt / example |
version 1.1.2.1, 2011/11/21 14:45:35 | version 1.1.2.2, 2011/11/21 14:51:23 |
---|---|
Line 19 main() | Line 19 main() |
printf("%d\n", ((u_char*) m->msg_base)[i]); | printf("%d\n", ((u_char*) m->msg_base)[i]); |
/* pub* */ | /* pub* */ |
printf("publish=%d/%d\n", m->msg_len, mqtt_msgPUBLISH(m, "AAA/bbb/CCC/ddd", 1, 0, 0, 0)); | printf("publish=%d/%d\n", m->msg_len, mqtt_msgPUBLISH(m, "AAA/bbb/CCC/ddd", 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]); |