version 1.1.1.1, 2012/01/26 13:07:33
|
version 1.1.1.1.2.1, 2012/04/26 15:26:37
|
Line 15 main(int argc, char **argv)
|
Line 15 main(int argc, char **argv)
|
if (argc < 2) |
if (argc < 2) |
return 1; |
return 1; |
|
|
v = mqtt_str2sub((const char**) argv, 0, qoses); | v = mqtt_str2subs((const char**) argv, 0, qoses); |
for (p = v; p->sub_topic.msg_base; p++) |
for (p = v; p->sub_topic.msg_base; p++) |
printf("size=%hd %s qos=%d\n", p->sub_topic.msg_len, (char*) p->sub_topic.msg_base, p->sub_ret); |
printf("size=%hd %s qos=%d\n", p->sub_topic.msg_len, (char*) p->sub_topic.msg_base, p->sub_ret); |
mqtt_subFree(&v); |
mqtt_subFree(&v); |