From b492c5d008dc1cf414cbb2652152d141f7820767 Mon Sep 17 00:00:00 2001 From: Z Date: Mon, 1 Jul 2024 15:29:20 +0800 Subject: [PATCH] fixed Read --- Example/Gateway/Script/View/ViewModbusGateway.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Example/Gateway/Script/View/ViewModbusGateway.cs b/Example/Gateway/Script/View/ViewModbusGateway.cs index 46144b2..26f12cc 100644 --- a/Example/Gateway/Script/View/ViewModbusGateway.cs +++ b/Example/Gateway/Script/View/ViewModbusGateway.cs @@ -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);