freeopcua | Open Source C++ OPC-UA Server and Client Library | Runtime Evironment library
kandi X-RAY | freeopcua Summary
kandi X-RAY | freeopcua Summary
Open Source C++ OPC-UA Server and Client Library.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of freeopcua
freeopcua Key Features
freeopcua Examples and Code Snippets
Community Discussions
Trending Discussions on freeopcua
QUESTION
I am coding an app with Flask python that allows me to manage 2 different motors. One for a solid silos, another one for a liquid silos.
To connect to these motors I am using an OPCUA connection. On my python file, I was repeating the code twice because it's exactly the same process, only the nodeId is changing. For the solid it is ua.NodeId(13,4) and for the other it's ua.NodeId(23,4).
I tried to write the following code:
...ANSWER
Answered 2021-Aug-19 at 12:11The error implies that when giving the second annotation flask tries to override the endpoint defined by the first annotation and this is not supported by Flask and seems to miss the purpose of what you were trying to achieve here.
And more generally, endpoints are most commonly used for revers lookup and do not seem to be meant for the use case here.
for more info - What is an 'endpoint' in Flask?
If I understand your goal correctly, this might do the trick:
QUESTION
I'm working with asyncio and asyncua libraries in python 3.8.7 and I want to use asyncio.Queue to pass the data from the async function into the main thread.
However, the issue I encountered is that my queue does not get any messages after the first await
.
Here's my example:
...ANSWER
Answered 2021-Jul-31 at 04:36This is a bit of a guess on my part, but I think you have a race condition. Here is the while loop in the main thread:
QUESTION
This is my ciao.json that i need to parse some data from it
...ANSWER
Answered 2021-Jul-08 at 09:35update json, I changed undefined obj to string.
QUESTION
My objective is to push data from an Azure IoT Hub to Power Bi. I don't intend to use Stream Analytics, because it's too expensive for my application and I don't really need the additional analytics-stuff. Because of that I wanted to use an Azure Function which sends the data to a streaming dataset endpoint of Power Bi.
Additional infos to the messages the IoT Hub receives:
- A message contains ~100 items (Example item: {'NodeId': 'http://Tensegrity-Robotics/#i=6193', 'Value': 0.011972, 'SourceTimestamp': '2021-06-17T14:30:25.035028Z', 'ApplicationUri': 'urn:freeopcua:python:server'})
- There are 35 different itemtypes (different NodeId)
- Every different itemtype needs to be pushed to a specific streaming dataset endpoint of power bi
- The IoT Hub receives a new message every second
The Azure function is written in python and looks like this:
...ANSWER
Answered 2021-Jun-25 at 07:03I ran this http trigger function code which is taking average 30ms.
QUESTION
I am currently trying to connect to an OPC UA server, which was set up on my local device as a test environment. The server was not set up by me, it is not implemented in python (think it might be json). I wanted to connect to it using the following code:
...ANSWER
Answered 2021-Mar-15 at 12:11From the error it seems the Python client is trying to connect using the UA Binary TCP transport but you have been given an HTTPS endpoint URL.
Perhaps you need to use a different endpoint URL to connect to this server? Maybe it’s opc.tcp://{PCName}:4840/opcua
if it’s using the default port.
QUESTION
On a Debian machine I'm using an OPCUA server https://github.com/FreeOpcUa/opcua-asyncio. The server does not give the possibility to enable TCP keepalive on the port opened by the server.
Basically, I want to know if it's possible to start the server then in another script, enable the tcp keepalive on that port.
I also found some other information from Redhat https://access.redhat.com/solutions/19029, and https://access.redhat.com/solutions/25773 (requires you to sign up to see the articles). But again I'm still lost as to what to do exactly.
I'll keep reading up on this, but so far I've spent about 10 hours trying to figure out whether it's even possible. So I thought I should ask for some help.
Any advice is welcome, thanks!
...ANSWER
Answered 2021-Jan-12 at 23:07For operations of socket of another process socket must be shared from it https://docs.python.org/3/library/socket.html#socket.socket.share or duplicated.
Its easier to patch your server for keepalive.
QUESTION
ANSWER
Answered 2020-Apr-30 at 03:34Ah, we need to specify the objecttype during adding object:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install freeopcua
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page