diff --git a/csharp/lib/Battery48TL/Program.cs b/csharp/lib/Battery48TL/Program.cs deleted file mode 100644 index 49b6b1b4b..000000000 --- a/csharp/lib/Battery48TL/Program.cs +++ /dev/null @@ -1,33 +0,0 @@ -using InnovEnergy.Lib.Protocols.Modbus.Clients; -using InnovEnergy.Lib.Protocols.Modbus.Connections; - -namespace InnovEnergy.Lib.Battery48TL; - -public static class Program -{ - - public static void Main(String[] args) - { - // var connection = new ModbusSerialConnection("/dev/virtualcom0", - // 115200, - // Parity.Odd, - // 8, - // StopBits.One, - // TimeSpan.FromMilliseconds(500)); - - var connection = new ModbusTcpConnection("10.2.2.206", 8080); - - var client = new ModbusRtuClient(connection, 2); - var device = new Battery48TlDevice(client); - - - while (true) - { - var s = device.ReadBatteryStatus(); - Console.WriteLine(s); - Thread.Sleep(2000); - } - - - } -} \ No newline at end of file