version 1.1.2.6, 2011/11/22 13:00:33
|
version 1.1.2.8, 2011/11/22 14:19:48
|
Line 54 main()
|
Line 54 main()
|
printf("suback=%d/%d\n", m->msg_len, mqtt_msgSUBACK(m, s, 10)); |
printf("suback=%d/%d\n", m->msg_len, mqtt_msgSUBACK(m, s, 10)); |
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]); |
|
printf("unsubscribe=%d/%d\n", m->msg_len, mqtt_msgUNSUBSCRIBE(m, s, 10, 0, 1)); |
|
for (i = 0; i < m->msg_len; i++) |
|
printf("%d\n", ((u_char*) m->msg_base)[i]); |
|
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]); |
|
|
|
/* ping* */ |
|
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("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("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]); |
|
|
mqtt_msgFree(&m, 42); |
mqtt_msgFree(&m, 42); |
return 0; |
return 0; |