QR Code Generator
This adapter generates and reads QR codes.
Properties
Operation | Defines the operation executed by the adapter. Possible values:
|
Parameters
Adapter | Main class of the adapter (do not change!) Possible values: de.softproject.integration.adapter.qrcode.QRCodeGenerator: Main class (default) |
imageWidth | Required. Width of the QR code to be generated in pixels. Possible values: Any integer (default: |
imageHeight | Required. Height of the QR code to be generated in pixels. Possible values: Any integer (default: |
imageFormat | Required. Data format of the graphic file containing the QR code to be generated. Possible values:
|
Status values
1 | The operation was executed successfully. |
-1 | An error occurred during the execution. |
Input
The adapter expects different data as input depending on the operation to be executed.
Consumeoperation: Graphic file with QR codeGenerateoperation: Raw text
Output
The adapter provides different data as output depending on the executed operation.
Consumeoperation: Content that was read from the QR code.Generateoperation: Graphic file with QR code
Example
With the QR Code Generator, QR codes that contain a URL can be created and read.
The process then looks as follows:

| Label | File | Description |
|---|---|---|
| url | url.txt | Text file that contains the URL |
| QR_Code_Generator | Adapter QR Code Generator | Operation Generate |
| QR_Code_Generator | Adapter QR Code Generator | Operation Consume |
Parameter of the adapter:
imageWidth: 350imageHeight: 350imageFormat: PNG