Skip to content
Snippets Groups Projects
Commit 55a3b7ae authored by Michal Ondrejička's avatar Michal Ondrejička
Browse files

Add Indexed to datas

parent 3cb454d9
No related branches found
No related tags found
No related merge requests found
......@@ -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,
}
};
......
......@@ -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 };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment