22 lines
713 B
C
22 lines
713 B
C
#ifndef __KIT_MQTT_H_
|
|
#define __KIT_MQTT_H_
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
// #include "libpaho-mqtt/include/MQTTClient.h"
|
|
#include "libpaho-mqtt/include/MQTTAsync.h"
|
|
#include "libcjson/include/cjson/cJSON.h"
|
|
|
|
|
|
void connlost(void *context, char *cause);
|
|
void onDisconnectFailure(void* context, MQTTAsync_failureData* response);
|
|
void onDisconnect(void* context, MQTTAsync_successData* response);
|
|
void onSendFailure(void* context, MQTTAsync_failureData* response);
|
|
void onSend(void* context, MQTTAsync_successData* response);
|
|
void onConnectFailure(void* context, MQTTAsync_failureData* response);
|
|
void onConnect(void* context, MQTTAsync_successData* response);
|
|
int pubClient();
|
|
|
|
#endif
|