Commit 25de6d89 authored by Ivan Tyagov's avatar Ivan Tyagov

Only care for other IDs than ourself.

parent 147f631b
...@@ -57,6 +57,7 @@ static void dataChangeNotificationCallback(UA_Server *server, UA_UInt32 monitore ...@@ -57,6 +57,7 @@ static void dataChangeNotificationCallback(UA_Server *server, UA_UInt32 monitore
// split <ID>.<heart_beats>, just converting to int is enough // split <ID>.<heart_beats>, just converting to int is enough
coupler_id = (int) heart_beat; coupler_id = (int) heart_beat;
UA_LOG_INFO(UA_Log_Stdout, UA_LOGCATEGORY_USERLAND, "heart_beat = %f, id=%d", heart_beat, coupler_id); UA_LOG_INFO(UA_Log_Stdout, UA_LOGCATEGORY_USERLAND, "heart_beat = %f, id=%d", heart_beat, coupler_id);
if (coupler_id!=COUPLER_ID) {
// convert coupler_id to str // convert coupler_id to str
char* coupler_id_str = convertInt2Str(coupler_id); char* coupler_id_str = convertInt2Str(coupler_id);
...@@ -66,6 +67,7 @@ static void dataChangeNotificationCallback(UA_Server *server, UA_UInt32 monitore ...@@ -66,6 +67,7 @@ static void dataChangeNotificationCallback(UA_Server *server, UA_UInt32 monitore
// Add to our local linked list // Add to our local linked list
addItem(&SUBSCRIBER_DICT, coupler_id_str, milli_seconds_now_str); addItem(&SUBSCRIBER_DICT, coupler_id_str, milli_seconds_now_str);
} }
}
} }
/* Add new connection to the server */ /* Add new connection to the 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