forked from gary/BCU
2
0
Fork 0
BCU/app/stm32fxxx_app/protocol/protocol_mqtt_bcu.h.orig

36 lines
795 B
C
Raw Normal View History

/******************************************************************************
* @file protocol_mqtt_bcu.h
* @brief protocol_mqtt_bcu.h
* @version V1.0
* @author Gary
* @copyright
******************************************************************************/
#ifndef PROTOCOL_MQTT_BCU_H_
#define PROTOCOL_MQTT_BCU_H_
#ifdef __cplusplus
extern "C" {
#endif
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include "cJSON.h"
#include "drv_qfc41d.h"
#include "drv_rtc.h"
typedef struct {
const char* key; // JSON <20>еļ<D0B5><C4BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "BCU_2"
uint32_t (*get_val)(uint16_t); // <20><>Ӧֵ<D3A6>Ļ<EFBFBD>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD>
} devPointMap;
extern const devPointMap bms_points[];
void mqtt_publish_bms_data(uint32_t basetime);
#ifdef __cplusplus
}
#endif
#endif