--- mqtt/example/Attic/cmds.c 2011/12/05 15:30:49 1.1.2.11 +++ mqtt/example/Attic/cmds.c 2011/12/05 17:05:38 1.1.2.12 @@ -80,13 +80,16 @@ main() printf("pingreq=%d/%d\n", m->msg_len, mqtt_msgPINGREQ(m)); for (i = 0; i < m->msg_len; i++) printf("%d\n", ((u_char*) m->msg_base)[i]); + printf("read pingreq=%d\n", mqtt_readPINGREQ(m)); printf("pingresp=%d/%d\n", m->msg_len, mqtt_msgPINGRESP(m)); for (i = 0; i < m->msg_len; i++) printf("%d\n", ((u_char*) m->msg_base)[i]); + printf("read pingresp=%d\n", mqtt_readPINGRESP(m)); printf("disconnect=%d/%d\n", m->msg_len, mqtt_msgDISCONNECT(m)); for (i = 0; i < m->msg_len; i++) printf("%d\n", ((u_char*) m->msg_base)[i]); + printf("read disconnect=%d\n", mqtt_readDISCONNECT(m)); mqtt_msgFree(&m, 42); return 0;