Adds a measure for a value or time sensor.
This allows you to get statistics about the measures for a value or for a time: total number, minimum number, average number, maximum number, ...
// A "NumberProducts" sensor was defined in the editor
// Whenever an order is validated, the number of products found in the order is added
TelemetryAddMeasure(<Sensor> [, <Category value> [, <Value of measure>]])
<Sensor>: Character string
Name of the value sensor or time sensor defined in the editor.
<Category value>: Optional character string
Value for the category defined in the editor.
<Value of measure>: Type corresponding to the sensor, optional
Value of measure.
- The sensors must be defined in a custom telemetry.
- A WLanguage error occurs if the sensor is not a value sensor or a time sensor.