diff --git a/Example/Gateway/ModbusGateway.tscn b/Example/Gateway/ModbusGateway.tscn index ff4fb77..73c29f5 100644 --- a/Example/Gateway/ModbusGateway.tscn +++ b/Example/Gateway/ModbusGateway.tscn @@ -3,6 +3,7 @@ [ext_resource type="Script" path="res://Example/Gateway/Script/View/ViewModbusGateway.cs" id="1_34uaa"] [node name="ModbusGateway" type="Control"] +visible = false layout_mode = 3 anchors_preset = 15 anchor_right = 1.0 diff --git a/Example/Gateway/Script/View/ViewModbusGateway.cs b/Example/Gateway/Script/View/ViewModbusGateway.cs index a1ff9f4..ada2a3b 100644 --- a/Example/Gateway/Script/View/ViewModbusGateway.cs +++ b/Example/Gateway/Script/View/ViewModbusGateway.cs @@ -23,6 +23,9 @@ namespace EGFramework.Examples.Gateway{ // GD.Print(fData.ToDoubleArray()[0]); // double t = 54.32f; // GD.Print(BitConverter.GetBytes(fData.ToDoubleArray()[0]).ToStringByHex()); + // byte[] fData = {0x42,0x0D,0x33,0x33}; + // GD.Print(fData.Reverse().ToFloatArray()[0]); + } // Called every frame. 'delta' is the elapsed time since the previous frame.