Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
osie
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Martin Manchev
osie
Commits
e98ff7b7
Commit
e98ff7b7
authored
Feb 20, 2023
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup unused definitions.
parent
b53e8978
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
38 deletions
+1
-38
coupler/keep_alive_publisher.h
coupler/keep_alive_publisher.h
+1
-8
coupler/keep_alive_subscriber.h
coupler/keep_alive_subscriber.h
+0
-30
No files found.
coupler/keep_alive_publisher.h
View file @
e98ff7b7
...
...
@@ -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
);
...
...
coupler/keep_alive_subscriber.h
View file @
e98ff7b7
...
...
@@ -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 */
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment