Commit 49a9ad06 authored by Ivan Tyagov's avatar Ivan Tyagov

Move to re-usable place.

parent 725eedf8
// global HEART BEATs of coupler
static unsigned int HEART_BEATS = 0;
// the heart beat interval$$
const int DEFAULT_HEART_BEAT_INTERVAL = 250;
static int HEART_BEAT_INTERVAL = DEFAULT_HEART_BEAT_INTERVAL;
// the list of couplers onto which we depend for properly running$
unsigned int HEART_BEAT_ID_LIST[] = {0, 0, 0, 0, 0, 0, 0, 0};
// the interval for publishing messages$
const int PUBLISHING_INTERVAL = 100;
// a hard coded writer group, data set and publisher ID$ // a hard coded writer group, data set and publisher ID$
// (should be same for publisher / subscriber)$ // (should be same for publisher / subscriber)$
const int WRITER_GROUP_ID = 100; const int WRITER_GROUP_ID = 100;
......
...@@ -4,19 +4,6 @@ Keep alive implementation for couplers based on OPC UA's pub/sub mechanism ...@@ -4,19 +4,6 @@ Keep alive implementation for couplers based on OPC UA's pub/sub mechanism
#include "keep_alive.h" #include "keep_alive.h"
// global HEART BEATs of coupler$
static unsigned int HEART_BEATS = 0;
// the heart beat interval$
const int DEFAULT_HEART_BEAT_INTERVAL = 250;
static int HEART_BEAT_INTERVAL = DEFAULT_HEART_BEAT_INTERVAL;
// the list of couplers onto which we depend for properly running
unsigned int HEART_BEAT_ID_LIST[] = {0, 0, 0, 0, 0, 0, 0, 0};
// the interval for publishing messages
const int PUBLISHING_INTERVAL = 100;
UA_NodeId connectionIdent, publishedDataSetIdent, writerGroupIdent; UA_NodeId connectionIdent, publishedDataSetIdent, writerGroupIdent;
static void addPubSubConnection(UA_Server *server, UA_String *transportProfile, static void addPubSubConnection(UA_Server *server, UA_String *transportProfile,
......
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