Return to mqtt.h CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / mqtt / inc |
1.2 misho 1: #ifndef __MQTT_H
2: #define __MQTT_H
3:
4:
1.2.2.1 misho 5: #define API_CLIENT_SIDE
6: #include <mqttapi.h>
7:
8:
1.2 misho 9: struct tagArgs {
1.2.2.3 ! misho 10: mqtt_cli_t *cli;
1.2 misho 11: io_sockaddr_t addr;
12: u_short ka;
13: mqtt_msg_t *msg;
14:
15: ait_val_t ConnID;
16: ait_val_t User;
17: ait_val_t Pass;
18:
19: struct {
20: ait_val_t Topic;
21: ait_val_t Msg;
22: } Will;
23:
24: u_short MsgID;
25:
26: u_char Dup;
27: u_char Retain;
28: u_char QoS;
29: u_char notClear;
30:
31: struct {
32: u_char isFile;
33: ait_val_t Value;
34: };
35:
36: ait_val_t Publish;
37:
1.2.2.2 misho 38: mqtt_subscr_t *subscr;
1.2 misho 39:
40: void (*free)(struct tagArgs*);
41: };
42:
43: extern struct tagArgs *args;
44:
45:
46: #endif