Renamed ModbusSerialServer to ModbusRtuServer
This commit is contained in:
@@ -17,7 +17,7 @@ namespace AMWD.Protocols.Modbus.Serial
|
|||||||
/// A basic implementation of a Modbus serial line server.
|
/// A basic implementation of a Modbus serial line server.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
|
[System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
|
||||||
public class ModbusSerialServer : IDisposable
|
public class ModbusRtuServer : IDisposable
|
||||||
{
|
{
|
||||||
#region Fields
|
#region Fields
|
||||||
|
|
||||||
@@ -34,11 +34,11 @@ namespace AMWD.Protocols.Modbus.Serial
|
|||||||
#region Constructors
|
#region Constructors
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="ModbusSerialServer"/> class.
|
/// Initializes a new instance of the <see cref="ModbusRtuServer"/> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="portName">The name of the serial port to use.</param>
|
/// <param name="portName">The name of the serial port to use.</param>
|
||||||
/// <param name="baudRate">The baud rate of the serial port (Default: 19.200).</param>
|
/// <param name="baudRate">The baud rate of the serial port (Default: 19.200).</param>
|
||||||
public ModbusSerialServer(string portName, BaudRate baudRate = BaudRate.Baud19200)
|
public ModbusRtuServer(string portName, BaudRate baudRate = BaudRate.Baud19200)
|
||||||
{
|
{
|
||||||
if (string.IsNullOrWhiteSpace(portName))
|
if (string.IsNullOrWhiteSpace(portName))
|
||||||
throw new ArgumentNullException(nameof(portName));
|
throw new ArgumentNullException(nameof(portName));
|
||||||
@@ -195,7 +195,7 @@ namespace AMWD.Protocols.Modbus.Serial
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Releases all managed and unmanaged resources used by the <see cref="ModbusSerialServer"/>.
|
/// Releases all managed and unmanaged resources used by the <see cref="ModbusRtuServer"/>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void Dispose()
|
public void Dispose()
|
||||||
{
|
{
|
||||||
@@ -7,7 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
_nothing changed yet_
|
### Changed
|
||||||
|
|
||||||
|
- Renamed `ModbusSerialServer` to `ModbusRtuServer` so clearify the protocol, that is used.
|
||||||
|
|
||||||
|
|
||||||
## [v0.2.0] (2024-04-02)
|
## [v0.2.0] (2024-04-02)
|
||||||
|
|||||||
Reference in New Issue
Block a user