Commit a2040fb6 authored by Ivan Tyagov's avatar Ivan Tyagov

Revert "Move Pub / Sub code to respective code section."

This reverts commit cc96c967.
parent 94737fc7
......@@ -110,6 +110,11 @@ static void stopHandler(int sign)
#ifndef DOING_UNIT_TESTS
int main(int argc, char **argv)
{
// init dictionary only once$
if (SUBSCRIBER_DICT==NULL){
SUBSCRIBER_DICT = *dictAlloc();
}
// parse CLI
handleCLI(argc, argv);
......@@ -176,11 +181,6 @@ int main(int argc, char **argv)
// enable protocol for Pub/Sub
UA_ServerConfig_addPubSubTransportLayer(config, UA_PubSubTransportLayerUDPMP());
// init dictionary only once$
if (SUBSCRIBER_DICT==NULL){
SUBSCRIBER_DICT = *dictAlloc();
}
// set for Pub / Sub the minimal and maximal sampling and publishing intervals
UA_DurationRange rangePublishing = {PUBLISHING_INTERVAL, 3600.0 * 1000.0};
UA_DurationRange rangeSampling = {PUBLISHING_INTERVAL, 24.0 * 3600.0 * 1000.0};
......
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