aqhome: use new type GWEN_ConnectableMsgEndpoint.
This allows for reconnect of endpoints if necessary.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user