You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Add Logger property to port.
- Replaced all calls wrapped with DEBUG with equivalents from ILogger.
- Add new log debug calls in all exceptions and operations.
- Update sample and readme accordingly.
- Bumo version to 1.1.
/// <exception cref="ArgumentOutOfRangeException">Thrown when <paramref name="deviceId"/>, <paramref name="startAddress"/>, or <paramref name="count"/> is out of range.</exception>
/// <param name="startAddress">The starting address of the registers.</param>
91
103
/// <param name="count">The number of registers to read.</param>
92
104
/// <returns>An array of ushort values representing the values of the input registers.</returns>
105
+
/// <exception cref="ArgumentOutOfRangeException">Thrown when <paramref name="deviceId"/>, <paramref name="startAddress"/>, or <paramref name="count"/> is out of range.</exception>""
93
106
publicshort[]ReadInputRegisters(
94
107
bytedeviceId,
95
108
ushortstartAddress,
@@ -132,7 +145,11 @@ public short[] ReadInputRegisters(
132
145
/// <param name="startAddress">The starting address of the coils.</param>
133
146
/// <param name="count">The number of coils to read.</param>
134
147
/// <returns>An array of boolean values representing the state of the coils.</returns>
/// <exception cref="ArgumentOutOfRangeException">Thrown when <paramref name="deviceId"/>, <paramref name="startAddress"/>, or <paramref name="count"/> is out of range.</exception>"
/// <param name="startAddress">The starting address of the registers.</param>
171
189
/// <param name="count">The number of registers to read.</param>
172
190
/// <returns>An array of ushort values representing the values of the holding registers.</returns>
191
+
/// <exception cref="ArgumentOutOfRangeException">Thrown when <paramref name="deviceId"/>, <paramref name="startAddress"/>, or <paramref name="count"/> is out of range.</exception>"
/// <exception cref="ArgumentOutOfRangeException">Thrown when <paramref name="deviceId"/> or <paramref name="startAddress"/> is out of range.</exception>
/// <param name="startAddress">The address of the register to write.</param>
279
310
/// <param name="value">The value to write to the register.</param>
280
311
/// <returns><see langword="true"/> if the write operation is successful, <see langword="false"/> otherwise.</returns>
312
+
/// <exception cref="ArgumentOutOfRangeException">Thrown when <paramref name="deviceId"/> or <paramref name="startAddress"/> is out of range.</exception>
281
313
publicboolWriteSingleRegister(
282
314
bytedeviceId,
283
315
ushortstartAddress,
@@ -301,14 +333,16 @@ public bool WriteSingleRegister(
301
333
/// <param name="startAddress">The starting address of the coils to write.</param>
302
334
/// <param name="values">An array of boolean values representing the state of the coils to write.</param>
303
335
/// <returns><see langword="true"/> if the write operation is successful, <see langword="false"/> otherwise.</returns>
336
+
/// <exception cref="ArgumentOutOfRangeException">Thrown when <paramref name="deviceId"/> or <paramref name="startAddress"/> is out of range, or the length of the <paramref name="values"/> array is zero.</exception>
@@ -343,14 +377,16 @@ public bool WriteMultipleCoils(
343
377
/// <param name="startAddress">The starting address of the registers to write.</param>
344
378
/// <param name="values">An array of ushort values representing the values to write to the registers.</param>
345
379
/// <returns><see langword="true"/> if the write operation is successful, <see langword="false"/> otherwise.</returns>
380
+
/// <exception cref="ArgumentOutOfRangeException">Thrown when <paramref name="deviceId"/> or <paramref name="startAddress"/> is out of range, or the length of the <paramref name="values"/> array is zero.</exception>
0 commit comments