Event Database Connector

This block can be used to transfer and display events, such as billing, in an Exosphere database.

Table of Contents


Inputs

AbbreviationSummaryDescriptionValue Range
ETrTriggerPulse on input triggers a write to the database.0/1
UidUser-IDUser-ID. If set before being triggered, the user fields of the corresponding user can be used.-
CI1Custom input 1Additional custom input 1-
CI2Custom input 2Additional custom input 2-
CI3Custom input 3Additional custom input 3-
CI4Custom input 4Additional custom input 4-
CI5Custom input 5Additional custom input 5-
CI6Custom input 6Additional custom input 6-
CI7Custom input 7Additional custom input 7-
CI8Custom input 8Additional custom input 8-
CI9Custom input 9Additional custom input 9-
CI10Custom input 10Additional custom input 10-
CI11Custom input 11Additional custom input 11-
CI12Custom input 12Additional custom input 12-
CI13Custom input 13Additional custom input 13-
CI14Custom input 14Additional custom input 14-
CI15Custom input 15Additional custom input 15-
CI16Custom input 16Additional custom input 16-




Parameters

AbbreviationSummaryDescriptionUnitValue RangeDefault Value
TdTrigger DelayDelays writing to database after trigger to make sure all inputs are setms0




Outputs

AbbreviationSummaryDescription
LogLog outputLog output on every write operation to the database
APIAPI ConnectorIntelligent API based connector.
API Commands




Properties

SummaryDescriptionDefault Value
Column contentEdit column content. Specify the data that should be written to the database columns.-



Programming example

In this example, a food and beverage billing for employees is recorded in a database.

A database must be created in Exosphere and integrated into the configuration using the "Database".

With the "Event Database Connector" block, the database can now be populated with data.

Double-clicking on the block opens the "Database Connector Configuration". Here, the contents of the columns can be defined.
If an option is grayed out, the datatype is not compatible with it.

Additionally, the block inputs "CI1-CI16" can be named. These will be displayed in the configuration but not in the Exosphere database.

The input "ETr" is triggered when a user is successfully authenticated via the NFC Code Touch. On every rising edge of this input, data is written to the database.

The ID of the authenticated user is transferred to the "Uid" input, and with additional logic on "CI1" and "CI2", the food and beverage type as well as the respective price are transferred.