|
|
| version 1.1.2.5, 2011/12/13 09:51:35 | version 1.3, 2012/07/03 09:02:50 |
|---|---|
| Line 2 | Line 2 |
| #define __MQTT_H | #define __MQTT_H |
| #define API_CLIENT_SIDE | |
| #include <aitmqtt.h> | |
| #include <mqttapi.h> | |
| struct tagArgs { | struct tagArgs { |
| mqtt_cli_t *cli; | |
| io_sockaddr_t addr; | io_sockaddr_t addr; |
| u_short ka; | |
| mqtt_msg_t *msg; | mqtt_msg_t *msg; |
| ait_val_t ConnID; | |
| ait_val_t User; | ait_val_t User; |
| ait_val_t Pass; | ait_val_t Pass; |
| Line 14 struct tagArgs { | Line 22 struct tagArgs { |
| ait_val_t Msg; | ait_val_t Msg; |
| } Will; | } Will; |
| char Dup; | u_char Dup; |
| char Retain; | u_char Retain; |
| char QoS; | u_char QoS; |
| char isFile; | u_char notClear; |
| ait_val_t Value; | |
| struct { | |
| u_char isFile; | |
| ait_val_t Value; | |
| }; | |
| ait_val_t Publish; | ait_val_t Publish; |
| array_t *Subscribes; | mqtt_subscr_t *subscr; |
| void (*free)(struct tagArgs*); | void (*free)(struct tagArgs*); |
| }; | }; |