Implemented the Serial Server

This commit is contained in:
2024-04-02 22:52:56 +02:00
parent a458e76aea
commit 380493c7ec
5 changed files with 1186 additions and 6 deletions

View File

@@ -20,7 +20,7 @@ ushort count = 2;
var registers = await client.ReadHoldingRegistersAsync(unitId, startAddress, count);
float voltage = registers.GetSingle();
Console.WriteLine($"The voltage between L1 and N is: {voltage:N2}V");
Console.WriteLine($"The voltage of device #{unitId} between L1 and N is: {voltage:N2}V");
```