Updated Protocol Constants

This commit is contained in:
2024-04-02 17:40:29 +02:00
parent a58af4d75f
commit 21b0540e81
6 changed files with 5 additions and 7 deletions

View File

@@ -31,7 +31,7 @@ namespace AMWD.Protocols.Modbus.Common.Protocols
/// <remarks> /// <remarks>
/// Reading the specification, the max allowed unit id would be <strong>247</strong>! /// Reading the specification, the max allowed unit id would be <strong>247</strong>!
/// </remarks> /// </remarks>
public const byte MAX_UNIT_ID = 0xFF; public const byte MAX_UNIT_ID = 0xF7;
/// <summary> /// <summary>
/// The minimum allowed read count specified by the Modbus SerialLine protocol. /// The minimum allowed read count specified by the Modbus SerialLine protocol.

View File

@@ -41,7 +41,7 @@ namespace AMWD.Protocols.Modbus.Common.Protocols
/// <remarks> /// <remarks>
/// Reading the specification, the max allowed unit id would be <strong>247</strong>! /// Reading the specification, the max allowed unit id would be <strong>247</strong>!
/// </remarks> /// </remarks>
public const byte MAX_UNIT_ID = 0xFF; public const byte MAX_UNIT_ID = 0xF7;
/// <summary> /// <summary>
/// The minimum allowed read count specified by the Modbus SerialLine protocol. /// The minimum allowed read count specified by the Modbus SerialLine protocol.

View File

@@ -30,7 +30,7 @@ namespace AMWD.Protocols.Modbus.Common.Protocols
/// <remarks> /// <remarks>
/// Reading the specification, the max allowed unit id would be <strong>247</strong>! /// Reading the specification, the max allowed unit id would be <strong>247</strong>!
/// </remarks> /// </remarks>
public const byte MAX_UNIT_ID = 0xFF; public const byte MAX_UNIT_ID = 0xF7;
/// <summary> /// <summary>
/// The minimum allowed read count specified by the Modbus SerialLine protocol. /// The minimum allowed read count specified by the Modbus SerialLine protocol.

View File

@@ -2,7 +2,6 @@
using System.Text; using System.Text;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
using AMWD.Protocols.Modbus.Common.Contracts;
using Moq; using Moq;
namespace AMWD.Protocols.Modbus.Tests.Common.Contracts namespace AMWD.Protocols.Modbus.Tests.Common.Contracts

View File

@@ -1,6 +1,4 @@
using AMWD.Protocols.Modbus.Common; namespace AMWD.Protocols.Modbus.Tests.Common.Extensions
namespace AMWD.Protocols.Modbus.Tests.Common.Extensions
{ {
[TestClass] [TestClass]
public class ModbusDecimalExtensionsTest public class ModbusDecimalExtensionsTest

View File

@@ -1,4 +1,5 @@
global using System; global using System;
global using System.Linq; global using System.Linq;
global using AMWD.Protocols.Modbus.Common; global using AMWD.Protocols.Modbus.Common;
global using AMWD.Protocols.Modbus.Common.Contracts;
global using Microsoft.VisualStudio.TestTools.UnitTesting; global using Microsoft.VisualStudio.TestTools.UnitTesting;