50 milleseconds a sleep between each modbus read
This commit is contained in:
parent
5610a10eaf
commit
e3a4aace09
|
|
@ -37,9 +37,12 @@ public class ModbusDevice<[DynamicallyAccessedMembers(All)] R> where R : notnull
|
||||||
|
|
||||||
public R Read(R record)
|
public R Read(R record)
|
||||||
{
|
{
|
||||||
|
Console.WriteLine($"Reading { _Batches.Count } Modbus batches.");
|
||||||
foreach (var batch in _Batches)
|
foreach (var batch in _Batches)
|
||||||
|
{
|
||||||
batch.Read(record);
|
batch.Read(record);
|
||||||
|
Thread.Sleep(50); // this added mainly for Growatt reading
|
||||||
|
}
|
||||||
return record;
|
return record;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue