--- mqtt/example/Attic/cmds.c 2011/12/05 17:05:38 1.1.2.12 +++ mqtt/example/Attic/cmds.c 2011/12/05 22:17:39 1.1.2.13 @@ -42,15 +42,19 @@ main() printf("puback=%d/%d\n", m->msg_len, mqtt_msgPUBACK(m, 10)); for (i = 0; i < m->msg_len; i++) printf("%d\n", ((u_char*) m->msg_base)[i]); + printf("read puback=%d\n", mqtt_readPUBACK(m)); printf("pubrec=%d/%d\n", m->msg_len, mqtt_msgPUBREC(m, 11)); for (i = 0; i < m->msg_len; i++) printf("%d\n", ((u_char*) m->msg_base)[i]); + printf("read pubrec=%d\n", mqtt_readPUBREC(m)); printf("pubrel=%d/%d\n", m->msg_len, mqtt_msgPUBREL(m, 12)); for (i = 0; i < m->msg_len; i++) printf("%d\n", ((u_char*) m->msg_base)[i]); + printf("read pubrel=%d\n", mqtt_readPUBREL(m)); printf("pubcomp=%d/%d\n", m->msg_len, mqtt_msgPUBCOMP(m, 13)); for (i = 0; i < m->msg_len; i++) printf("%d\n", ((u_char*) m->msg_base)[i]); + printf("read pubcomp=%d\n", mqtt_readPUBCOMP(m)); /* sub* */ memset(s, 0, sizeof s); @@ -75,6 +79,7 @@ main() printf("unsuback=%d/%d\n", m->msg_len, mqtt_msgUNSUBACK(m, 10)); for (i = 0; i < m->msg_len; i++) printf("%d\n", ((u_char*) m->msg_base)[i]); + printf("read unsuback=%d\n", mqtt_readUNSUBACK(m)); /* ping* */ printf("pingreq=%d/%d\n", m->msg_len, mqtt_msgPINGREQ(m));