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
Nikola Balog
osie
Commits
bcd01d80
Commit
bcd01d80
authored
Apr 19, 2022
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
64 bits -> 32 bits
parent
f2bfc98e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
coupler/opc-ua-server/keep_alive.h
coupler/opc-ua-server/keep_alive.h
+2
-2
No files found.
coupler/opc-ua-server/keep_alive.h
View file @
bcd01d80
...
...
@@ -125,11 +125,11 @@ typedef struct PublishedVariable {
static
void
addPubSubVariable
(
UA_Server
*
server
,
PublishedVariable
varDetails
)
{
UA_VariableAttributes
attr
=
UA_VariableAttributes_default
;
//UA_Variant_setScalar(&attr.value, varDetails.pdefaultValue, &UA_TYPES[varDetails.type]);
UA_Variant_setScalar
(
&
attr
.
value
,
varDetails
.
pdefaultValue
,
&
UA_TYPES
[
UA_TYPES_INT
64
]);
UA_Variant_setScalar
(
&
attr
.
value
,
varDetails
.
pdefaultValue
,
&
UA_TYPES
[
UA_TYPES_INT
32
]);
//XXX: hard-code for INT32 only, make generic
attr
.
description
=
UA_LOCALIZEDTEXT
(
"en-US"
,
varDetails
.
description
);
attr
.
displayName
=
UA_LOCALIZEDTEXT
(
"en-US"
,
varDetails
.
description
);
//attr.dataType = UA_TYPES[varDetails.type].typeId;
attr
.
dataType
=
UA_TYPES
[
UA_TYPES_INT
64
].
typeId
;
attr
.
dataType
=
UA_TYPES
[
UA_TYPES_INT
32
].
typeId
;
//XXX: hard-code for INT32 only, make generic
attr
.
accessLevel
=
UA_ACCESSLEVELMASK_READ
|
UA_ACCESSLEVELMASK_WRITE
;
UA_Server_addVariableNode
(
server
,
UA_NODEID_STRING
(
1
,
varDetails
.
name
),
...
...
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