barcodereader
The technical documentation for the microservice barcodereader, which reads out barcodes and sends the data to the MQTT broker.
less than a minute
This microservice is still in development and is not considered stable for production use.
Environment variables
This chapter explains all environment variables used in barcodereader.
| Variable name | Description | Type | Possible values | Example Values |
|---|---|---|---|---|
ASSET_ID | The asset ID, which is used for the topic structure | string | all | weaving_machine_2 |
CUSTOMER_ID | The customer ID, which is used for the topic structure | string | all | dccaachen |
INPUT_DEVICE_NAME | The name of the input device | string | all | Datalogic ADC, Inc. Handheld Barcode Scanner |
INPUT_DEVICE_PATH | Linux path of the input device used | string | all | /dev/input/event0 |
KAFKA_BOOTSTRAP_SERVER | URL of the Kafka broker used, port is required | string | all | localhost:9092 |
LOCATION | The location, which is used for the topic structure | string | all | aachen |
LOGGING_LEVEL | Defines which logging level is used, mostly relevant for developers. If logging level is not DEVELOPMENT, default logging will be used | string | DEVELOPMENT | DEVELOPMENT |
SCAN_ONLY | Prevent message broadcasting if enabled (default: false) | bool | true, false | false |
SERIAL_NUMBER | Serial number of the cluster (used for tracing) | string | all | development |
MICROSERVICE_NAME | Name of the microservice (used for tracing) | string | all | barcodereader |
DEBUG_ENABLE_FGTRACE | Enables the use of the fgtrace library, do not enable in production | string | true, 1, any | 1 |
Last modified February 17, 2023: update (#208) (ea731fc)