Used to tag questions related to the open62541 OPC UA stack.
Questions tagged [open62541]
79 questions
3
votes
1 answer
UA_Client_Service_read only yields empty responses
I am trying to create a small program in C which will poll a frame of data over a opc/ua connection using the open62541 library and the forward it to a kafka server.
Everything works fine when fetching the values from the nodes separately but I…

Sebastian
- 63
- 4
3
votes
2 answers
OPC-UA open62541 sdk Add Variable nodes dynamically after run the server
Reading the documentation and examples of the OPC-UA foundation and OPC-UA open62541 sdk, the variables nodes are always added before the statement to start run the server. Is it possible to add them after the server has been started? If I change…

Lucas Santos
- 597
- 6
- 18
3
votes
1 answer
OPC-UA Function of "UA_ReadRequest_deleteMembers" Error Problem
Hello Everyone i have one question
I Using OPC-UA for client, I have some problem
This is Problem code
UA_ReadRequest requestPos;
UA_ReadRequest_init(&requestPos);
UA_ReadValueId idPos;
UA_ReadValueId_init(&idPos);
idPos.attributeId =…

JeaHwan Chung
- 61
- 4
3
votes
1 answer
Multiple node read in single request from client in open62541
Can anyone tell me the syntax for multiple node read in single request to server in open62541.
i have been doing a single read request by
UA_Client_readValueAttribute(client, UA_NODEID_STRING(1, "variable"), &value) from the open62541 client to…

TechDev
- 41
- 2
- 4
2
votes
1 answer
open62541 client fails when calling method with custom datatype input argument
I'm using open62541 to connect to an OPC/UA server and I'm trying to call methods that a certain object on that server provides. Those methods have custom types as input arguments; for example, the following method takes a structure of three…

Matz
- 583
- 1
- 6
- 21
2
votes
1 answer
How create *.bsd file in the UaModeler?
Good day.
How can we export to BSD in the UaModeler?
I can only export to XML and CSV.

AnastasiaA
- 21
- 2
2
votes
1 answer
Async read and write API on Open62541 OPC UA
I am developing an OPC UA client that needs to connect asynchronously to a server and update its node data. I am using UA_Client_connectAsync to connect to the server but the async write/read APIs e.g. UA_Client_writeValueAttribute_async…

Socrates
- 335
- 2
- 3
- 11
2
votes
2 answers
C type casting from a Ua_Variant
I'm trying to understand what the typecasting is doing in the following code
UA_Variant Variant;
Int32_t Variable;
variable = *(int32_t *) Variant.data;
printf("%d", variable);
This is the structure of the UA_Variant
typedef struct
{
const…

Parko
- 23
- 6
2
votes
1 answer
open62541: Linker Tool Error for referenced functions
I am trying to get open62541 to work on my Windows 10 machine, but even with this post, I am still struggling.
Goal
I want to execute a cpp OPC_UA Client with all associated functionalities (CRUD on PLC Variables and so on).
Current status
I already…

Stephan T.
- 5,843
- 3
- 20
- 42
2
votes
1 answer
How to write multiple nodes with OPC-UA at once using open62541?
I am attempting to write multiple nodes in a single request, however I have not found any documentation or examples on how to do that, every time I find anything regarding the issue, a single node is written. Based on my understanding of the…

C. Pinto
- 83
- 4
2
votes
1 answer
Building the Dockerfile executes with non-zero code 139
Description / Reproduction Steps
I am trying to run the opc-ua server examle "server_ctt" (using the open62541 library from here) within a docker container on my Raspberry Pi 1, but
I am failing at creating the docker image.
I followed the…

user7335295
- 401
- 2
- 7
- 31
2
votes
1 answer
How to add an array of UA_String to the server in open62541
I am trying to set up an OPC server using open62541. The examples are working and I was able to add my own variables to the server.
For this project I would like to add a server variable which is an array of UA_String. There are examples for…

Heimetli
- 23
- 5
2
votes
1 answer
Reading Datatype from Node Attribute
I'm trying to write values to some OPC UA nodes with Qt and open62541. For that I have to know the different data types of the nodes. Every time I try to read the data type of a node, I get a Boolean type instead of an int32. It is the correct node…

Henrik
- 43
- 6
2
votes
1 answer
open62541: publish temperature val
I am currently trying to publish a datetime value AND a temperature value with the OPC UA implementation called open62541.
For this, I have been using the test example from the open62541 github repository as it is already publishing the current…

user7335295
- 401
- 2
- 7
- 31
2
votes
1 answer
Integrating open62541 into an existing libev event loop
I have an existing application that makes extensive use of libev for its event loop. I would now like to add OPC UA server functionality, but am unsure how best to integrate the open62541 event loop into libev.
The following possibilities come to…

Johannes Zeppenfeld
- 33
- 6