Apollo3zehn / FluentModbus

Lightweight and fast client and server implementation of the Modbus protocol (TCP/RTU).
MIT License
204 stars 71 forks source link

Use new indexing feature: #6

Open Apollo3zehn opened 5 years ago

Apollo3zehn commented 5 years ago

var floatData = client.ReadHoldingRegisters(0, 1, 2); var firstValue = floatData[0]; var lastValue = floatData[^1];