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