aqhome: use new type GWEN_ConnectableMsgEndpoint.

This allows for reconnect of endpoints if necessary.
This commit is contained in:
Martin Preuss
2023-04-09 00:35:17 +02:00
parent 7490167694
commit c8afd7eb74
5 changed files with 44 additions and 37 deletions

View File

@@ -189,11 +189,6 @@ int testMqttConnection()
return 2;
}
GWEN_MsgEndpointMgr_AddEndpoint(emgr, epTcp);
rv=GWEN_TcpcEndpoint_StartConnect(epTcp);
if (rv<0) {
DBG_ERROR(NULL, "Error starting connect (%d)", rv);
return 2;
}
fprintf(stdout, "Sending CONNECT\n");
msgOut=GWEN_ConnectMqttMsg_new("MQTT", 4, 0, 10, "CLIENTID123", NULL, NULL);