Commit ba769996 authored by Ivan Tyagov's avatar Ivan Tyagov

Cleanup. Rename.

parent 4212242d
...@@ -71,7 +71,7 @@ static error_t parse_opt(int key, char *arg, struct argp_state *state) ...@@ -71,7 +71,7 @@ static error_t parse_opt(int key, char *arg, struct argp_state *state)
arguments->key = arg; arguments->key = arg;
break; break;
case 'i': case 'i':
arguments->id = arg ? atoi (arg) : DEFAULT_ID; arguments->id = arg ? atoi (arg) : DEFAULT_COUPLER_ID;
break; break;
case 'b': case 'b':
arguments->heart_beat = atoi (arg); arguments->heart_beat = atoi (arg);
...@@ -112,7 +112,7 @@ void handleCLI(int argc, char **argv) { ...@@ -112,7 +112,7 @@ void handleCLI(int argc, char **argv) {
arguments.password = ""; arguments.password = "";
arguments.key = ""; arguments.key = "";
arguments.certificate = ""; arguments.certificate = "";
arguments.id = DEFAULT_ID; arguments.id = DEFAULT_COUPLER_ID;
arguments.heart_beat_interval = DEFAULT_HEART_BEAT_INTERVAL; arguments.heart_beat_interval = DEFAULT_HEART_BEAT_INTERVAL;
arguments.network_address_url_data_type = NETWORK_ADDRESS_URL_DATA_TYPE; arguments.network_address_url_data_type = NETWORK_ADDRESS_URL_DATA_TYPE;
argp_parse(&argp, argc, argv, 0, 0, &arguments); argp_parse(&argp, argc, argv, 0, 0, &arguments);
......
...@@ -45,7 +45,7 @@ dict_t *SUBSCRIBER_DICT; ...@@ -45,7 +45,7 @@ dict_t *SUBSCRIBER_DICT;
// The default port of OPC-UA server // The default port of OPC-UA server
const int DEFAULT_OPC_UA_PORT = 4840; const int DEFAULT_OPC_UA_PORT = 4840;
const int DEFAULT_MODE = 0; const int DEFAULT_MODE = 0;
const int DEFAULT_ID = 0; const int DEFAULT_COUPLER_ID = 0;
int OPC_UA_PORT; int OPC_UA_PORT;
bool ENABLE_HEART_BEAT = false; bool ENABLE_HEART_BEAT = false;
...@@ -71,11 +71,6 @@ static void stopHandler(int sign) ...@@ -71,11 +71,6 @@ static void stopHandler(int sign)
int main(int argc, char **argv) int main(int argc, char **argv)
{ {
int i;
int length;
long result;
char *eptr;
// init dictionary only once$ // init dictionary only once$
if (SUBSCRIBER_DICT==NULL){ if (SUBSCRIBER_DICT==NULL){
SUBSCRIBER_DICT = *dictAlloc(); SUBSCRIBER_DICT = *dictAlloc();
......
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