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

@@ -46,7 +46,7 @@ int AQH_Tool_GetDevices(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 */
@@ -57,13 +57,13 @@ int AQH_Tool_GetDevices(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 */
"tcpport", /* long option */
I18S("Specify the TCP port to listen on"),
I18S("Specify the TCP port to listen on")
I18S("Specify the TCP port to connect to"),
I18S("Specify the TCP port to connect to")
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
@@ -172,7 +172,7 @@ int _doGetDevices(GWEN_DB_NODE *dbArgs)
timeoutInSeconds=GWEN_DB_GetIntValue(dbArgs, "timeout", 0, 5);
printHeader=GWEN_DB_GetIntValue(dbArgs, "printHeader", 0, 0);
epTcp=Utils_OpenBrokerConnection(dbArgs, 0, timeoutInSeconds);
epTcp=Utils_SetupBrokerClientEndpoint(dbArgs, 0);
if (epTcp==NULL) {
DBG_ERROR(NULL, "ERROR creating TCP connection");
return 2;