aqhome: convenience code.

This commit is contained in:
Martin Preuss
2024-09-29 21:09:08 +02:00
parent ee73bb0f69
commit 10564ec78f
5 changed files with 435 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
/****************************************************************************
* This file is part of the project AqHome.
* AqHome (c) by 2024 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 AQHOME_CLIENT_CONNECTION_H
#define AQHOME_CLIENT_CONNECTION_H
#include <aqhome/api.h>
#include <gwenhywfar/endpoint.h>
GWEN_MSG_ENDPOINT *AQH_BrokerConnection_OpenConnection(const char *addr, int port,
const char *clientId,
const char *userId, const char *passwd,
uint32_t flags,
int timeoutInSeconds);
int AQH_BrokerConnection_FlushOutMessageQueue(GWEN_MSG_ENDPOINT *epTcp, int timeoutInSeconds);
GWEN_MSG *AQH_BrokerConnection_WaitForSpecificMessage(GWEN_MSG_ENDPOINT *epTcp, int msgCode, int timeoutInSeconds);
#endif