07.10.2020, 06:47
There's a built-in conversion function that can be used. The more simple way is to use a profile and set "datatype" field to "float32".
Code:
require('luamodbus')
value = luamodbus.convert('float32', 16896, 30915)
log(value)