added specific IPC messages and use them instead of more generic messages.
This commit is contained in:
50
aqhome/ipc/data/msg_data_singledata.h
Normal file
50
aqhome/ipc/data/msg_data_singledata.h
Normal file
@@ -0,0 +1,50 @@
|
||||
/****************************************************************************
|
||||
* 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_SINGLEDATA_H
|
||||
#define AQH_MSG_IPC_DATA_SINGLEDATA_H
|
||||
|
||||
|
||||
#include <aqhome/api.h>
|
||||
|
||||
#include <aqhome/data/value.h>
|
||||
|
||||
#include <gwenhywfar/msg_ipc.h>
|
||||
|
||||
|
||||
/**
|
||||
* This message is used in request AQH_MSGTYPE_IPC_DATA_ADDVALUE_REQ.
|
||||
*/
|
||||
|
||||
#define AQH_MSGDATA_SINGLEDATA_TAGS_NAME 0x0001
|
||||
#define AQH_MSGDATA_SINGLEDATA_TAGS_UNITS 0x0002
|
||||
#define AQH_MSGDATA_SINGLEDATA_TAGS_TYPE 0x0003
|
||||
#define AQH_MSGDATA_SINGLEDATA_TAGS_TIME 0x0010
|
||||
#define AQH_MSGDATA_SINGLEDATA_TAGS_DATA 0x0011
|
||||
|
||||
|
||||
|
||||
AQHOME_API GWEN_MSG *AQH_SingleDataDataIpcMsg_new(uint16_t code,
|
||||
const char *valueName,
|
||||
const char *valueUnits,
|
||||
int valueType,
|
||||
uint64_t timestamp,
|
||||
double datapoint);
|
||||
|
||||
AQHOME_API void AQH_SingleDataDataIpcMsg_DumpToBuffer(const GWEN_MSG *msg, GWEN_BUFFER *dbuf, const char *sText);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user