Decreased verbosity, fixed broker connection setup.

This commit is contained in:
Martin Preuss
2023-10-07 23:06:31 +02:00
parent d1f7a6b730
commit 077b367299
12 changed files with 57 additions and 42 deletions

View File

@@ -59,7 +59,7 @@ int AQH_Tool_GetLastDataPoint(GWEN_DB_NODE *dbGlobalArgs, int argc, char **argv)
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"tcpAddress", /* name */
"brokerAddress", /* name */
0, /* minnum */
1, /* maxnum */
"t", /* short option */
@@ -70,7 +70,7 @@ int AQH_Tool_GetLastDataPoint(GWEN_DB_NODE *dbGlobalArgs, int argc, char **argv)
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Int, /* type */
"tcpPort", /* name */
"brokerPort", /* name */
0, /* minnum */
1, /* maxnum */
"P", /* short option */
@@ -185,7 +185,7 @@ int _doGetLastDataPoint(GWEN_DB_NODE *dbArgs)
timeoutInSeconds=GWEN_DB_GetIntValue(dbArgs, "timeout", 0, 5);
valueName=GWEN_DB_GetCharValue(dbArgs, "valueName", 0, NULL);
epTcp=Utils_OpenBrokerConnection(dbArgs, 0, timeoutInSeconds);
epTcp=Utils_SetupBrokerClientEndpoint(dbArgs, 0);
if (epTcp==NULL) {
DBG_ERROR(NULL, "ERROR creating TCP connection");
return 2;