added specific IPC messages and use them instead of more generic messages.

This commit is contained in:
Martin Preuss
2023-09-13 12:07:11 +02:00
parent 11798a39d6
commit 161b979e84
21 changed files with 902 additions and 188 deletions

View File

@@ -0,0 +1,42 @@
/****************************************************************************
* This file is part of the project AqHome.
* AqHome (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_MSG_IPC_DATA_MULTIDATA_H
#define AQH_MSG_IPC_DATA_MULTIDATA_H
#include <aqhome/api.h>
#include <aqhome/data/value.h>
#include <gwenhywfar/msg_ipc.h>
#define AQH_MSGDATA_MULTIDATA_TAGS_NAME 0x0001
#define AQH_MSGDATA_MULTIDATA_TAGS_UNITS 0x0002
#define AQH_MSGDATA_MULTIDATA_TAGS_TYPE 0x0003
#define AQH_MSGDATA_MULTIDATA_TAGS_DATA 0x0010
AQHOME_API GWEN_MSG *AQH_MultiDataDataIpcMsg_new(uint16_t code,
const char *valueName, const char *valueUnits, int valueType,
const uint64_t *i64Ptr, int numOfDataPoints);
AQHOME_API void AQH_MultiDataDataIpcMsg_DumpToBuffer(const GWEN_MSG *msg, GWEN_BUFFER *dbuf, const char *sText);
#endif