Itroduce IChargerDriver

This commit is contained in:
2023-02-02 14:11:03 +01:00
parent b440594749
commit a7693e34ed
2 changed files with 11 additions and 1 deletions

View File

@@ -0,0 +1,10 @@
namespace TestApp.Driver
{
internal interface IChargerDriver
{
string HostAddress { get; set; }
int Port { get; set; }
void SetLoadingCurrent(double value);
}
}

View File

@@ -3,7 +3,7 @@ using System.Net.Sockets;
namespace TestApp.Driver namespace TestApp.Driver
{ {
internal class VestelEvc04 internal class VestelEvc04 : IChargerDriver
{ {
private IModbusMaster? _Modbus; private IModbusMaster? _Modbus;
private bool _Running; private bool _Running;