version 1.1.2.5, 2011/11/22 10:33:39
|
version 1.1.2.6, 2011/11/22 13:00:33
|
Line 51 main()
|
Line 51 main()
|
printf("subscribe=%d/%d\n", m->msg_len, mqtt_msgSUBSCRIBE(m, s, 10, 0, 0)); |
printf("subscribe=%d/%d\n", m->msg_len, mqtt_msgSUBSCRIBE(m, s, 10, 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]); |
|
printf("suback=%d/%d\n", m->msg_len, mqtt_msgSUBACK(m, s, 10)); |
|
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; |