digitaltwinconsortium / ua-cloudtwin Goto Github PK
View Code? Open in Web Editor NEWA cloud-based Digital Twin Definition Language (DTDL) adapter for OPC UA data.
License: MIT License
A cloud-based Digital Twin Definition Language (DTDL) adapter for OPC UA data.
License: MIT License
UA-CloudTwin/Applications/ADTClient.cs
Line 264 in 420384c
When running locally the ADTClient gets an index out of range error on line 264. After inspecting the array, it seems that you have written the code for 1-based indexed arrays.
Are my assumption correct ? And if so, is there a particular reason for this ?
If not, is there anything wrong with the telemetryName that is passed into the function:
"opc.tcp://111.111.11.111:1111_11111111_somename;sensor-name;i=11111"
Hi,
We are working on a Twin for a factory with OPC UA devices, the data is flowing through a VM with IoT Edge and a OPC UA publisher to the IoT-Hub->UA-CloudTwin->ADT. We are getting the following information when we are running UA-CloudTwin:
"No metadata message for {publisherID}:{dataSetWriterId} received yet!" and the digital twins does not contain the metadata necessary to create relations and hierarchy.
The publisher looks like this with but with more nodes, different names and IP as well.
{ "EndpointUrl": "opc.tcp://111.111.11.111", "DataSetWriterGroup": "rh", "DataSetWriterId": 3, "OpcNodes": [ { "Id": "ns=1;s=/codesys/volatile/pdp/Multivac/R530/Advance", "HeartbeatIntervalTimespan": "00:01:00", "OpcSamplingInterval": 2000, "OpcPublishingInterval": 5000, "DataSetFieldId": "R530-Advance", "DisplayName": "R530-Advance" } }
In azure the message looks something like this:
[ { "MessageId": "4690", "MessageType": "ua-data", "PublisherId": "opc.tcp://111.111.11.111:rh", "DataSetWriterGroup": "rh", "Messages": [ { "DataSetWriterId": "3", "SequenceNumber": 4690, "MetaDataVersion": { "MajorVersion": 1, "MinorVersion": 0 }, "Timestamp": "2022-11-29T06:20:26.2187Z", "Payload": { "R530-Advance": { "Value": false, "SourceTimestamp": "2022-11-29T06:14:32.09145Z", "ServerTimestamp": "2022-11-29T06:14:32.3252Z" } } } ] } ]
Would it be possible to provide a valid example of a payload containing message data and metadata necessary to create a small hierarchy?
For example a factory with two machines with two sensors.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.