started working on mqtt support in aqhome-nodes

This commit is contained in:
Martin Preuss
2025-08-03 00:56:22 +02:00
parent 8c13f9fdf7
commit 7fbc616ce4
7 changed files with 481 additions and 16 deletions

View File

@@ -57,6 +57,9 @@ void AQH_NodeServer_HandleClientMsgs(AQH_OBJECT *o);
void AQH_NodeServer_HandleBrokerMsgs(AQH_OBJECT *o);
void AQH_NodeServer_CheckBrokerConnection(AQH_OBJECT *o);
void AQH_NodeServer_CheckTtyConnection(AQH_OBJECT *o);
void AQH_NodeServer_HandleMqttMsgs(AQH_OBJECT *o);
void AQH_NodeServer_CheckMqttConnection(AQH_OBJECT *o);
int AQH_NodeServer_SendPing(AQH_OBJECT *o);
/* getters and setters */
@@ -72,6 +75,12 @@ void AQH_NodeServer_SetBrokerAddress(AQH_OBJECT *o, const char *s);
void AQH_NodeServer_SetBrokerPort(AQH_OBJECT *o, int i);
void AQH_NodeServer_SetBrokerClientId(AQH_OBJECT *o, const char *s);
void AQH_NodeServer_SetMqttAddress(AQH_OBJECT *o, const char *s);
void AQH_NodeServer_SetMqttPort(AQH_OBJECT *o, int i);
void AQH_NodeServer_SetMqttClientId(AQH_OBJECT *o, const char *s);
void AQH_NodeServer_SetMqttKeepAlive(AQH_OBJECT *o, int i);
void AQH_NodeServer_SetMqttDiscoveryPrefix(AQH_OBJECT *o, const char *s);
/* device management */
const AQHNODE_DEVICE_LIST *AQH_NodeServer_GetDeviceDefList(const AQH_OBJECT *o);