Return to mqtt.c CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / mqtt / src |
1.1 misho 1: #include "global.h" 2: 3: 4: int 5: main(int argc, char **argv) 6: { 1.1.1.1.2.1! misho 7: mqtt_msg_t *m; ! 8: int i; ! 9: ! 10: m = mqtt_msgAlloc(14); ! 11: printf("connect=%d/%d\n", m->msg_len, mqtt_msgCONNECT(m)); ! 12: for (i = 0; i < m->msg_len; i++) ! 13: printf("%d\n", ((u_char*) m->msg_base)[i]); ! 14: mqtt_msgFree(&m, 42); 1.1 misho 15: return 0; 16: }