Commit e98ff7b7 authored by Ivan Tyagov's avatar Ivan Tyagov

Cleanup unused definitions.

parent b53e8978
......@@ -167,14 +167,7 @@ static void enablePublishHeartBeat(UA_Server *server, UA_ServerConfig *config){
.description = "Heartbeat",
.pdefaultValue = &defaultFloat,
.type = UA_TYPES_FLOAT
},
// representing the ID of the coupler
//{
// .name = "id",
// .description = "ID",
// .pdefaultValue = &couplerID,
// .type = UA_TYPES_UINT32
//}
}
};
UA_String transportProfile = UA_STRING(DEFAULT_TRANSPORT_PROFILE);
......
......@@ -26,29 +26,6 @@ static void dataChangeNotificationCallback(UA_Server *server, UA_UInt32 monitore
unsigned long int milli_seconds_now;
unsigned int coupler_id;
// filter out ID from Data Set
/*
if(UA_Variant_hasScalarType(&var->value, &UA_TYPES[UA_TYPES_UINT32])) {
coupler_id = *(UA_UInt32*) var->value.data;
// care for other coupler_id NOT ourselves
if (coupler_id!=COUPLER_ID) {
UA_LOG_INFO(UA_Log_Stdout, \
UA_LOGCATEGORY_USERLAND, \
"HEART BEAT: %d", coupler_id);
// convert coupler_id to str
char* coupler_id_str = convertInt2Str(coupler_id);
// convert micro seconds to str
char* milli_seconds_now_str = convertLongInt2Str(milli_seconds_now);
// Add to our local linked list
addItem(&SUBSCRIBER_DICT, coupler_id_str, milli_seconds_now_str);
}
}
*/
// filter out heart_beat from Data Set
if(UA_Variant_hasScalarType(&var->value, &UA_TYPES[UA_TYPES_FLOAT])) {
float heart_beat = *(UA_Float*) var->value.data;
......@@ -226,13 +203,6 @@ static void fillTestDataSetMetaData(UA_DataSetMetaDataType *pMetaData) {
pMetaData->fields[0].name = UA_STRING ("Heartbeat (subscribed)");
pMetaData->fields[0].valueRank = -1; /* scalar */
// ID
//UA_FieldMetaData_init (&pMetaData->fields[1]);
//UA_NodeId_copy (&UA_TYPES[UA_TYPES_UINT32].typeId,
// &pMetaData->fields[1].dataType);
//pMetaData->fields[1].builtInType = UA_NS0ID_UINT32;
//pMetaData->fields[1].name = UA_STRING ("ID (subscribed)");
//pMetaData->fields[1].valueRank = -1; /* scalar */
}
......
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