Browse Source

fixed Read

master
Z 5 months ago
parent
commit
b492c5d008
  1. 2
      Example/Gateway/Script/View/ViewModbusGateway.cs

2
Example/Gateway/Script/View/ViewModbusGateway.cs

@ -129,8 +129,8 @@ namespace EGFramework.Examples.Gateway{ @@ -129,8 +129,8 @@ namespace EGFramework.Examples.Gateway{
onceValue = ((ModbusTCP_Response)result).HoldingRegister[0];
break;
}
GD.Print(register.Key+"[Read]:"+(float)onceValue);
pushData.Add(register.Key, (float)onceValue);
}
}else{
GD.Print("Error:"+((ModbusTCP_Response)result).ErrorCode);

Loading…
Cancel
Save