BugFix ClientList file name is not shown

Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
This commit is contained in:
tomoaki
2020-02-21 11:29:37 +09:00
parent c37d9334d4
commit ae462989ec
2 changed files with 30 additions and 32 deletions

View File

@@ -215,6 +215,26 @@ void Gateway::initialize(int argc, char** argv)
}
}
if (getParam("ClientsList", param) == 0)
{
_params.clientListName = strdup(param);
}
if (getParam("PredefinedTopicList", param) == 0)
{
_params.predefinedTopicFileName = strdup(param);
}
if ( _params.clientListName == nullptr )
{
_params.clientListName = strdup(( _params.configDir + string(CLIENT_LIST) ).c_str());
}
if ( _params.predefinedTopicFileName == nullptr )
{
_params.predefinedTopicFileName = strdup(( _params.configDir + string(PREDEFINEDTOPIC_FILE) ).c_str());
}
/* ClientList and Adapters Initialize */
_adapterManager->initialize();