Return to test.c CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / libaitmqtt / example |
version 1.2, 2012/06/20 15:02:23 | version 1.2.14.2, 2016/09/14 16:17:40 |
---|---|
Line 2 | Line 2 |
#include <stdlib.h> | #include <stdlib.h> |
#include <string.h> | #include <string.h> |
#include <sys/types.h> | #include <sys/types.h> |
#include "aitmqtt.h" | #include <limits.h> |
#include <aitmqtt.h> | |
int | int |
Line 10 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++) |