From fc81bbe23671f446ceab07c8e6e64fd06d786767 Mon Sep 17 00:00:00 2001 From: ig Date: Thu, 23 Feb 2023 16:08:33 +0100 Subject: [PATCH] remove spurious Battery files --- csharp/lib/Battery48TL/Program.cs | 33 ------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 csharp/lib/Battery48TL/Program.cs 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