Critial Bug Fix in Connector. Samples Bug Fix.
This commit is contained in:
@@ -30,7 +30,8 @@ namespace CrossLamp.Controllers
|
||||
{
|
||||
if (_utility == null)
|
||||
{
|
||||
_utility = new ModbusUtility(ModbusType.Tcp, "192.168.0.172", 2, 0);
|
||||
_utility = new ModbusUtility(ModbusType.Tcp, "192.168.0.161", 2, 0);
|
||||
await _utility.ConnectAsync();
|
||||
}
|
||||
Lamp light = new Lamp();
|
||||
object[] lampsbyte = await _utility.GetDatasAsync("0X 1", new KeyValuePair<Type, int>(typeof(bool), 7));
|
||||
|
||||
@@ -1,3 +1,43 @@
|
||||
.mar-right {
|
||||
margin-right: 20px;
|
||||
}
|
||||
|
||||
.light {
|
||||
border-radius: 50%;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
display: inline-block;
|
||||
background-color: #95a5a6;
|
||||
}
|
||||
|
||||
.red {
|
||||
background-color: #f05f2a;
|
||||
}
|
||||
|
||||
.yellow {
|
||||
background-color: #DDFF00;
|
||||
}
|
||||
|
||||
.green {
|
||||
background-color: #01a252;
|
||||
}
|
||||
|
||||
.borderddy {
|
||||
border: 6px solid #95a5a6;
|
||||
}
|
||||
|
||||
.top {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.box {
|
||||
text-align: center;
|
||||
line-height: 50%;
|
||||
padding: 10px 0 10px 0;
|
||||
border-radius: 40px;
|
||||
background-color: #525e64;
|
||||
}
|
||||
|
||||
html {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ function readLamp() {
|
||||
[].forEach.call(liNodes, function (v) {
|
||||
v.style.backgroundColor = "lightgray";
|
||||
});
|
||||
switch (datas.MainLamp) {
|
||||
switch (datas.mainLamp) {
|
||||
case "Red":
|
||||
{
|
||||
liNodes[index].style.backgroundColor = colorArr[index];
|
||||
@@ -35,7 +35,7 @@ function readLamp() {
|
||||
break;
|
||||
}
|
||||
}
|
||||
switch (datas.SubLamp) {
|
||||
switch (datas.subLamp) {
|
||||
case "Red":
|
||||
{
|
||||
liNodes[index2].style.backgroundColor = colorArr[index];
|
||||
|
||||
Reference in New Issue
Block a user