Added datafile and handling of MQTT publish message.
This commit is contained in:
39
aqhome/data/datafile_p.h
Normal file
39
aqhome/data/datafile_p.h
Normal file
@@ -0,0 +1,39 @@
|
||||
/****************************************************************************
|
||||
* This file is part of the project Gwenhywfar.
|
||||
* Gwenhywfar (c) by 2023 Martin Preuss, all rights reserved.
|
||||
*
|
||||
* The license for this file can be found in the file COPYING which you
|
||||
* should have received along with this file.
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef AQH_DATAFILE_P_H
|
||||
#define AQH_DATAFILE_P_H
|
||||
|
||||
|
||||
#include "./datafile.h"
|
||||
|
||||
#include <gwenhywfar/syncio.h>
|
||||
|
||||
|
||||
#define AQH_DATAFILE_RECORDSIZE 16
|
||||
#define AQH_DATAFILE_OFFSET_TIMESTAMP 0
|
||||
#define AQH_DATAFILE_OFFSET_VALUE 8
|
||||
|
||||
|
||||
struct AQH_DATAFILE {
|
||||
GWEN_LIST_ELEMENT(AQH_DATAFILE);
|
||||
|
||||
char *fileName;
|
||||
uint64_t valueId;
|
||||
GWEN_SYNCIO *sio;
|
||||
uint64_t numberOfEntries;
|
||||
uint32_t runtimeFlags;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user