MICRO-EPSILON colorSENSOR CFO Series Instruction Manual page 115

Hide thumbs Also See for colorSENSOR CFO Series:
Table of Contents

Advertisement

Anhang | API Communication with Controller (Version 0.7.1)
A 3.5.3.35 Historical readings (stream=0)
When further parameters are not specified, the last readings present in the buffer are returned without delay.
GET
The two optional and combinable filters min_age and max_age allow limitation of the returned entries to a
defined time range (defined as seconds in comparison to time of query).
The details provided correspond to the data set described under /api/sensor/samples/current.
A 3.5.3.36 Stream Output (stream=1)
The query is switched over to the stream mode upon transfer of the query argument stream=1.
When a stream is queried the output formats JSON and CSV are selectable.
This query returns new sample values continuously line for line, until the client closes the connection.
The following parameters are accepted:
Attribute
format
stream_count
delimiter
The returned attributes correspond to those in the /api/sensor/samples/current query.
The CSV output format is derived from the primary JSON output format. The CSV output format always be-
gins with a table header. The keys contained therein for the JSON data set elements correspond to the format
representations.RGB[0]. Dictionary keys are separated by a dot. Array indices are enclosed in brack-
ets. The numbering for the columns in the CSV output format is not specified and may change in the future.
The column number for the desired values must be derived dynamically from the position of the associated
column header.
Error codes:
LPLC.validation.single_character
LPLC.validation.non_negative_integer
LPLC.validation.keyword.csv|json
colorSENSOR CFO
Possible con-
Standard value
tents
json / csv
json
Natural number
0
Character string
, (comma)
Content
Output format
Endless data set query (=0) or defined num-
ber of data sets (>0)
Column separation character for CSV output
Page 115

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the colorSENSOR CFO Series and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Colorsensor cfo200Colorsensor cfo100

Table of Contents