EMS/kit/kit_mqtt.h

22 lines
712 B
C
Raw Normal View History

2024-11-22 09:44:21 +08:00
#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"
void closeInterface();
void openInterface();
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