Skip to content

Commit

Permalink
Restored interger and float mode
Browse files Browse the repository at this point in the history
  • Loading branch information
salvatore-coppola authored Nov 25, 2024
1 parent bef3e0c commit 32baee9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/connect-field-devices/asset-implemetation.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ The Asset supports applying a scale and offset to the values obtained by the att
The following **mode**s are implemented for computing scale and offset:

- `DOUBLE`
- `INTEGER`
- `LONG`
- `FLOAT`

The values of the **scale** and **offset** configuration parameters and the value obtained from the Driver are all converted to the **mode** type using the Java casting and then the following operation is performed: `channel_value * scale + offset`. The operation result is casted again to **value.type** to produce the final channel value.

Expand Down

0 comments on commit 32baee9

Please sign in to comment.