hacker-cb / modbus-dart

BSD 3-Clause "New" or "Revised" License
37 stars 22 forks source link

Read Real number #18

Closed Tedxjbc closed 2 years ago

Tedxjbc commented 2 years ago

I want to read values from PLC which gives me Real (data type) number too. How to read it? Function readInputRegister has data type Uint16List. Is it possible to change this function to read Real numbers?

hacker-cb commented 2 years ago

All registers internally has uint16 type.

So, you should make all other conversions in your code.