/** 
* @file      xieneng_car_comm.h 
* @brief     description about xieneng car BMS
* @details  e.g. xieneng CAR BMS
* @author   xianpeng.zhao@lnxall.com
* @date     2020.03.25
* @version  A001 
* @par Copyright (c):  
*       LNXALL
* @par History:          
*   version: draft\n 
*/
#ifndef __XIENENG_CAR_COMMON_H
#define __XIENENG_CAR_COMMON_H

/***************HEADER FILES****************/
#include <string.h>
#include <syslog.h>
#include "mqtt_session.h"
#include "lnxall_list.h"
#include "dy_utils/dy_common.h"
#include "dy_utils/dy_ds.h"
#include "dy_utils/kv_array.h"
#include "dy_utils/dy_ipc.h"
#include "dy_utils/dy_can.h"
#include "mosquitto.h"
/******************************************/

/******************MACRO********************/
#define CAN_MQTT_PROXY_CFG "/app/config/can_mqtt_proxy_cfg.json"
/******************************************/

/*************ENUM*************************/

/******************************************/

/*******************STRUCTURE**************/
typedef struct
{
    mqtt_session_t *session; ///<外部broker
    can_cfg_t *can_cfg;      ///<CAN口配置
    char sn_str[SN_MAX_LEN]; ///<自己的SN
    gw_port_e port;          ///<上位机连接端口
    char *sub_topic;         ///<订阅topic
    char *pub_topic;         ///<发布topic
} can_mqtt_proxy_var_t;
/******************************************/

#endif /* __XIENENG_CAR_COMMON_H */
