3D sensor
42
ASCII format properties:
Format properties
Allowed values
Default
width
Output width. If the resulting value exceeds the width field the
result will not be truncated.
0
fill
Fill character
" "
precision
Precision is the number of digits behind the decimalseparator.
6
displayformat
Fixed, scientific
Fixed
alignment
Left, right
Right
decimalseparator 7-bit characters for e.g. "."
"."
base
Defines if the output should be:
●
binary (2)
●
octal (8)
●
decimal (10)
●
hexadecimal (16)
10
Example of a format configuration of the temperature (id: temp_illu) element.
1. Illumination temperature like this "33,5___":
c000000226{ "layouter": "flexible", "format": { "dataencoding": "ascii" },
"elements": [ { "type": "float32", "id": "temp_illu", "format": { "width": 7,
"precision": 1, "fill": "_", "alignment": "left", "decimalseparator": "," }
} ] }
2. Illumination temperature as binary (16-bit integer, 1/10 °C):
c000000194{ "layouter": "flexible", "format": { "dataencoding": "ascii"
}, "elements": [ { "type": "int16", "id": "temp_illu", "format": {
"dataencoding": "binary", "order": "network", "scale": 10 } } ] }
3. Illumination temperature in °F (e.g. "92.3 Fahrenheit" ):
c000000227{ "layouter": "flexible", "format": { "dataencoding": "ascii" },
"elements": [ { "type": "float32", "id": "temp_illu", "format": { "precision":
1, "scale": 1.8, "offset": 32 } }, { "type": "string", "value": " Fahrenheit"
} ] }