Heavy work on IPC.
We will now have a broker (aqhome-data) which stores data and distributes value change messages among connected clients. aqhomed will connect to that broker and send its values there. aqhome-mqtt will also connect to the broker and send its values there. Other clients can later connect to check for changes and react according to rules.
This commit is contained in:
@@ -22,12 +22,14 @@
|
||||
#define AQH_IPC_PROTOCOL_RESULT_VERSION 1
|
||||
|
||||
|
||||
#define AQH_MSG_IPC_SUCCESS 0
|
||||
#define AQH_MSG_IPC_ERROR_GENERIC 1
|
||||
#define AQH_MSG_IPC_ERROR_INVALID 2
|
||||
#define AQH_MSG_IPC_ERROR_EXISTS 3
|
||||
#define AQH_MSG_IPC_ERROR_NODATA 4
|
||||
#define AQH_MSG_IPC_ERROR_BADDATA 5
|
||||
#define AQH_MSG_IPC_SUCCESS 0
|
||||
#define AQH_MSG_IPC_ERROR_GENERIC 1
|
||||
#define AQH_MSG_IPC_ERROR_INVALID 2
|
||||
#define AQH_MSG_IPC_ERROR_EXISTS 3
|
||||
#define AQH_MSG_IPC_ERROR_NODATA 4
|
||||
#define AQH_MSG_IPC_ERROR_BADDATA 5
|
||||
#define AQH_MSG_IPC_ERROR_PERMS 6
|
||||
#define AQH_MSG_IPC_ERROR_NOTFOUND 7
|
||||
|
||||
|
||||
AQHOME_API GWEN_MSG *AQH_ResultIpcMsg_new(uint16_t code, uint32_t resultCode);
|
||||
|
||||
Reference in New Issue
Block a user