Added VirtualModbusClient to Common

This commit is contained in:
2025-01-23 22:01:45 +01:00
parent ce3d873cd0
commit fb67e0b77e
14 changed files with 752 additions and 81 deletions

View File

@@ -8,19 +8,26 @@ namespace AMWD.Protocols.Modbus.Common.Events
[System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class CoilWrittenEventArgs : EventArgs
{
internal CoilWrittenEventArgs(byte unitId, ushort address, bool value)
{
UnitId = unitId;
Address = address;
Value = value;
}
/// <summary>
/// Gets or sets the unit id.
/// </summary>
public byte UnitId { get; set; }
public byte UnitId { get; }
/// <summary>
/// Gets or sets the coil address.
/// </summary>
public ushort Address { get; set; }
public ushort Address { get; }
/// <summary>
/// Gets or sets the coil value.
/// </summary>
public bool Value { get; set; }
public bool Value { get; }
}
}