mirror of
				https://gitee.com/ThingsGateway/ThingsGateway.git
				synced 2025-10-31 07:33:58 +08:00 
			
		
		
		
	更新测试
This commit is contained in:
		| @@ -19,12 +19,12 @@ public class ModbusTest | ||||
| { | ||||
|  | ||||
|     [Theory] | ||||
|     [InlineData("400045", true, "00010000002F01032C0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000")] | ||||
|     [InlineData("300045", true, "00010000002F01042C0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000")] | ||||
|     [InlineData("100045", true, "000100000009010206000000000000")] | ||||
|     [InlineData("000045", true, "000100000009010106000000000000")] | ||||
|     [InlineData("400045", false, "0001000000060106002C0001", "1", DataTypeEnum.UInt16)] | ||||
|     [InlineData("000045", false, "0001000000060105002CFF00", "true", DataTypeEnum.Boolean)] | ||||
|     [InlineData("400045", true, "00000000002F01032C0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000")] | ||||
|     [InlineData("300045", true, "00000000002F01042C0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000")] | ||||
|     [InlineData("100045", true, "000000000009010206000000000000")] | ||||
|     [InlineData("000045", true, "000000000009010106000000000000")] | ||||
|     [InlineData("400045", false, "0000000000060106002C0001", "1", DataTypeEnum.UInt16)] | ||||
|     [InlineData("000045", false, "0000000000060105002CFF00", "true", DataTypeEnum.Boolean)] | ||||
|     public async Task ModbusTcp_ReadWrite_OK(string address, bool read, string data, string writeData = null, DataTypeEnum dataTypeEnum = DataTypeEnum.UInt16) | ||||
|     { | ||||
|         byte[] bytes = data.HexStringToBytes(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Diego
					Diego