Skip to main content

Setup Configuration

The configuration of the terminal can be done by creating and configuring a terminal_settings-instance. The terminal_settings-instance must then be passed to the terminal_createfunction.

Once a terminal-instance has been created with a terminal_settings-instance, the settings can not be changed anymore. Changes to the terminal_settings-instance will be ignored.

The network and guides configuration are explained in the following chapters. For further information refer toterminal_settings.

Network Configuration​

Depending on the platform used, the TIM API module can communicate with the Terminal over different communication channels.

The default communication is over TCP/IP connection. Default port used is 7784.

For TCP/IP connection there are two possible ways to connect to the terminal:

  * **Broadcast-Mode:**
* Terminal ID (TID) is known.
* The TIM API starts broadcasting on the default interface and connects to the connection information sent by the matching terminal.
* **Direct Connect:**
* IP address of the terminal is known.
* Connection is established directly via IP.

Guides Configuration​

There are various guides covering different use case scenarios. The guide retailis the basic guide and is activated as default. With set_guides the guides can be configured. Important: the configuration needs to include all desired guides (including the retail guide).

Code-example for creating a terminal including settings with activated guides retail and hospitality:

ta_object_t terminal = ta_object_invalid;
ta_object_t settings = ta_object_invalid;

// create terminal settings instance
ta_terminal_settings_create(&settings);

// add wanted guides (with bitwise or)
ta_terminal_settings_set_guides(settings, ta_c_guide_retail | ta_c_guide_dialog);

// create terminal
ta_terminal_create(&terminal, settings);

// release terminal settings
ta_object_release(settings);

//...

// in the end release terminal as well
ta_oject_release(terminal);