...
 
Commits (2)
......@@ -24,6 +24,7 @@ CONFIG_DNS_RESOLVER=y
CONFIG_NET_DEFAULT_IF_ETHERNET=y
CONFIG_NET_MAX_CONN=16
CONFIG_NET_MAX_CONTEXTS=16
CONFIG_NET_TX_STACK_SIZE=1500
CONFIG_NET_IF_MAX_IPV4_COUNT=2
......
......@@ -24,6 +24,7 @@ CONFIG_DNS_RESOLVER=y
CONFIG_NET_DEFAULT_IF_ETHERNET=y
CONFIG_NET_MAX_CONN=16
CONFIG_NET_MAX_CONTEXTS=16
CONFIG_NET_TX_STACK_SIZE=1500
CONFIG_NET_IF_MAX_IPV4_COUNT=2
......
......@@ -35,7 +35,7 @@
#define APPLICATION_URI "urn:S2OPC:localhost"
#define PRODUCT_URI "urn:S2OPC:localhost"
#define SERVER_DESCRIPTION "S2OPC Server + PubSub"
#define LOG_PATH "./logs/"
#define LOG_PATH ""
#define ADDRESS_SPACE_PATH "./pubsub_server.xml"
#define SLEEP_TIMEOUT 100
#define NODEID_PUBSUB_STATUS "ns=1;s=PubSubStatus"
......
......@@ -36,6 +36,8 @@
#include "sopc_toolkit_config.h"
#include "xml_expat/sopc_uanodeset_loader.h"
#include "sopc_logger.h"
#ifdef WITH_STATIC_SECURITY_DATA
#include "static_security_data.h"
#endif
......@@ -76,12 +78,13 @@ SOPC_ReturnStatus Server_Initialize(void)
{
SOPC_Log_Configuration logConfiguration = SOPC_Common_GetDefaultLogConfiguration();
logConfiguration.logSysConfig.fileSystemLogConfig.logDirPath = LOG_PATH;
logConfiguration.logLevel = SOPC_LOG_LEVEL_DEBUG;
logConfiguration.logLevel = SOPC_LOG_LEVEL_ERROR;
SOPC_ReturnStatus status = SOPC_Common_Initialize(logConfiguration);
if (SOPC_STATUS_OK == status)
{
status = SOPC_Toolkit_Initialize(Server_Event_Toolkit);
SOPC_Logger_SetConsoleOutput(true);
}
if (SOPC_STATUS_OK == status)
......