#ifndef __KIT_MQTT_SUB_H_ #define __KIT_MQTT_SUB_H_ #include #include #include #include "libpaho-mqtt/include/MQTTAsync.h" #include "libcjson/include/cjson/cJSON.h" void connlost(void *context, char *cause); int msgarrvd(void *context, char *topicName, int topicLen, MQTTAsync_message *message); void onDisconnectFailure(void* context, MQTTAsync_failureData* response); void onDisconnect1(void* context, MQTTAsync_successData* response); void onSubscribe(void* context, MQTTAsync_successData* response); void onSubscribeFailure1(void* context, MQTTAsync_failureData* response); void onConnectFailure1(void* context, MQTTAsync_failureData* response); void onConnect1(void* context, MQTTAsync_successData* response); int subClient(); # endif