Commit fbb20ccc authored by Ivan Tyagov's avatar Ivan Tyagov

Cleanup

parent f97575f2
...@@ -56,7 +56,7 @@ static void dataChangeNotificationCallback(UA_Server *server, UA_UInt32 monitore ...@@ -56,7 +56,7 @@ static void dataChangeNotificationCallback(UA_Server *server, UA_UInt32 monitore
} }
/* Add new connection to the server */ /* Add new connection to the server */
static UA_StatusCode addPubSubConnectionXXX(UA_Server *server, UA_String *transportProfile, static UA_StatusCode addPubSubConnectionSubscriber(UA_Server *server, UA_String *transportProfile,
UA_NetworkAddressUrlDataType *networkAddressUrl) { UA_NetworkAddressUrlDataType *networkAddressUrl) {
if((server == NULL) || (transportProfile == NULL) || if((server == NULL) || (transportProfile == NULL) ||
(networkAddressUrl == NULL)) { (networkAddressUrl == NULL)) {
...@@ -292,7 +292,7 @@ static int enableSubscribeToHeartBeat(UA_Server *server, UA_ServerConfig *config ...@@ -292,7 +292,7 @@ static int enableSubscribeToHeartBeat(UA_Server *server, UA_ServerConfig *config
// enable subscribe to keep-alive messages // enable subscribe to keep-alive messages
UA_String transportProfile = UA_STRING(DEFAULT_TRANSPORT_PROFILE); UA_String transportProfile = UA_STRING(DEFAULT_TRANSPORT_PROFILE);
UA_NetworkAddressUrlDataType networkAddressUrl = {UA_STRING_NULL , UA_STRING(NETWORK_ADDRESS_URL_DATA_TYPE)}; UA_NetworkAddressUrlDataType networkAddressUrl = {UA_STRING_NULL , UA_STRING(NETWORK_ADDRESS_URL_DATA_TYPE)};
addPubSubConnectionXXX(server, &transportProfile, &networkAddressUrl); addPubSubConnectionSubscriber(server, &transportProfile, &networkAddressUrl);
/* Add ReaderGroup to the created PubSubConnection */ /* Add ReaderGroup to the created PubSubConnection */
addReaderGroup(server); addReaderGroup(server);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment