We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
my code var comPort = GetComPort(); //COM5 var slaveAddress = GetSlaveAddress(); //3 //var registerAddresses = GetRegisterAddresses();
var _utility = new ModbusUtility(ModbusType.Rtu, comPort, slaveAddress, 0, Endian.BigEndianLsb); await _utility.ConnectAsync();
while (true) { object[] receivedBytes = (await _utility.GetDatasAsync("4X 0", new KeyValuePair<Type, int>(typeof(ushort), 2))).Datas;
}
question receivedBytes is always null and I am sure I get this data by serialPort 10 00 00 00 02 04 04 80 00 00 F8 CF
What am i doing wrong?
The text was updated successfully, but these errors were encountered:
I didn't working on this for a long time… did u fixed it?
Sorry, something went wrong.
No branches or pull requests
my code
var comPort = GetComPort(); //COM5
var slaveAddress = GetSlaveAddress(); //3
//var registerAddresses = GetRegisterAddresses();
var _utility = new ModbusUtility(ModbusType.Rtu, comPort, slaveAddress, 0, Endian.BigEndianLsb);
await _utility.ConnectAsync();
while (true)
{
object[] receivedBytes = (await _utility.GetDatasAsync("4X 0", new KeyValuePair<Type, int>(typeof(ushort), 2))).Datas;
}
question
receivedBytes is always null and I am sure I get this data by serialPort
10 00 00 00 02 04 04 80 00 00 F8 CF
What am i doing wrong?
The text was updated successfully, but these errors were encountered: