Return to test.c CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / libaitmqtt / example |
version 1.2.14.1, 2016/09/14 16:16:55 | version 1.2.14.2, 2016/09/14 16:17:40 |
---|---|
Line 11 main(int argc, char **argv) | Line 11 main(int argc, char **argv) |
{ | { |
mqtt_subscr_t *v, *p; | mqtt_subscr_t *v, *p; |
u_char qoses[] = { 1, 0, 2, 6, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0 }; | u_char qoses[] = { 1, 0, 2, 6, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0 }; |
register int i; | register int i = 0; |
v = mqtt_str2subs((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++) |