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