Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
tDevkit
Manage
Activity
Members
Plan
Wiki
Jira
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Digital Twin
Twinzo
tDevkit
Commits
55a3b7ae
Commit
55a3b7ae
authored
2 years ago
by
Michal Ondrejička
Browse files
Options
Downloads
Patches
Plain Diff
Add Indexed to datas
parent
3cb454d9
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Main/Program.cs
+6
-3
6 additions, 3 deletions
Main/Program.cs
Main/TestData.cs
+16
-8
16 additions, 8 deletions
Main/TestData.cs
with
22 additions
and
11 deletions
Main/Program.cs
+
6
−
3
View file @
55a3b7ae
...
...
@@ -52,21 +52,24 @@ namespace Main
Quantity
=
"Voltage"
,
Value
=
"120"
,
Unit
=
"V"
,
DataType
=
"Single"
DataType
=
"Single"
,
Index
=
0
,
},
new
SensorDataContract
{
Quantity
=
"Frequency"
,
Value
=
"1"
,
Unit
=
"Hz"
,
DataType
=
"Single"
DataType
=
"Single"
,
Index
=
0
,
},
new
SensorDataContract
{
Quantity
=
"OK parts"
,
Value
=
"600"
,
Unit
=
"pcs"
,
DataType
=
"Int32"
DataType
=
"Int32"
,
Index
=
0
,
}
};
...
...
This diff is collapsed.
Click to expand it.
Main/TestData.cs
+
16
−
8
View file @
55a3b7ae
...
...
@@ -99,14 +99,16 @@ namespace Main
Quantity
=
"Temperature"
,
Value
=
"16"
,
Unit
=
"°C"
,
DataType
=
"Single"
DataType
=
"Single"
,
Index
=
0
};
SensorDataContract
data2
=
new
SensorDataContract
{
Quantity
=
"Humidity"
,
Value
=
"31"
,
Unit
=
"%"
,
DataType
=
"Single"
DataType
=
"Single"
,
Index
=
1
};
SensorDataContract
[]
sensorDataContracts
=
new
SensorDataContract
[]
{
data1
,
data2
};
...
...
@@ -143,14 +145,16 @@ namespace Main
Quantity
=
"Temperature"
,
Value
=
"16"
,
Unit
=
"°C"
,
DataType
=
"Single"
DataType
=
"Single"
,
Index
=
0
};
SensorDataContract
data2
=
new
SensorDataContract
{
Quantity
=
"Humidity"
,
Value
=
"31"
,
Unit
=
"%"
,
DataType
=
"Single"
DataType
=
"Single"
,
Index
=
1
};
SensorDataContract
data3
=
new
SensorDataContract
{
...
...
@@ -158,7 +162,8 @@ namespace Main
Timestamp
=
1614599484673
,
Value
=
"800"
,
DataType
=
"Int32"
,
Unit
=
"unit"
Unit
=
"unit"
,
Index
=
2
};
SensorDataContract
[]
sensorDataContracts
=
new
SensorDataContract
[]
{
data1
,
data2
,
data3
};
...
...
@@ -180,14 +185,16 @@ namespace Main
Quantity
=
"Temperature"
,
Value
=
"16"
,
Unit
=
"°C"
,
DataType
=
"Single"
DataType
=
"Single"
,
Index
=
0
};
SensorDataContract
data2
=
new
SensorDataContract
{
Quantity
=
"Humidity"
,
Value
=
"31"
,
Unit
=
"%"
,
DataType
=
"Single"
DataType
=
"Single"
,
Index
=
1
};
SensorDataContract
data3
=
new
SensorDataContract
{
...
...
@@ -195,7 +202,8 @@ namespace Main
Timestamp
=
1614599484673
,
Value
=
"800"
,
DataType
=
"Int32"
,
Unit
=
"unit"
Unit
=
"unit"
,
Index
=
2
};
SensorDataContract
[]
sensorDataContracts
=
new
SensorDataContract
[]
{
data1
,
data2
,
data3
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment