mirror of
https://github.com/eclipse/paho.mqtt-sn.embedded-c.git
synced 2025-12-16 08:56:51 +01:00
Bugfix can't read PredefinedTopicList file
Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
This commit is contained in:
@@ -86,6 +86,10 @@ Gateway::~Gateway()
|
||||
{
|
||||
free(_params.clientListName);
|
||||
}
|
||||
if ( _params.predefinedTopicFileName )
|
||||
{
|
||||
free( _params.predefinedTopicFileName);
|
||||
}
|
||||
if ( _params.configName )
|
||||
{
|
||||
free(_params.configName);
|
||||
@@ -116,6 +120,16 @@ int Gateway::getParam(const char* parameter, char* value)
|
||||
return MultiTaskProcess::getParam(parameter, value);
|
||||
}
|
||||
|
||||
char* Gateway::getClientListFileName(void)
|
||||
{
|
||||
return _params.clientListName;
|
||||
}
|
||||
|
||||
char* Gateway::getPredefinedTopicFileName(void)
|
||||
{
|
||||
return _params.predefinedTopicFileName;
|
||||
}
|
||||
|
||||
void Gateway::initialize(int argc, char** argv)
|
||||
{
|
||||
char param[MQTTSNGW_PARAM_MAX];
|
||||
|
||||
Reference in New Issue
Block a user