yincheng.zhong
7 天以前 b53fff11e6f0d560594834de32886239cbba90a3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*******************************************************************************
 * File Name         : MQTTClient.h
 * Description       :
 * Author            : ¶Å¼ü
 *******************************************************************************/
 
#ifndef _MQTT_CLIENT_H_
#define _MQTT_CLIENT_H_
/*******************************************************************************
 *                              Include Files                                  *
 *******************************************************************************/
#include "HIDO_TypeDef.h"
#include "Module.h"
#include "MsgPack.h"
 
/*******************************************************************************
 *                                  Macro                                      *
 *******************************************************************************/
 
/*******************************************************************************
 *                             Type Definition                                 *
 *******************************************************************************/
typedef enum
{
    MQTT_CLIENT_EVENT_CONNECT,
    MQTT_CLIENT_EVENT_DISCONNECT,
} E_MQTTClientEvent;
 
typedef HIDO_VOID (*FN_MQTTClientEventCallback)(E_MQTTClientEvent _eEvent, HIDO_VOID *_pArg);
 
/*******************************************************************************
 *                             Global Function                                 *
 *******************************************************************************/
 
HIDO_BOOL MQTTClient_IsReportIdle(HIDO_VOID);
HIDO_INT32 MQTTClient_GpsReport(ST_ReportGps *_pstReporGps);
HIDO_INT32 MQTTClient_Init(void);
void MQTTClient_Poll(void);
#endif /* APL_MQTTClient_H_ */