Skip to main content
Coreflux HUB Routes section showing route cards with connection status indicators, sort and filter controls, and route management options

Why Use the Routes Section?

You need to manage Routes from the browser—add new routes, edit configuration, check connection status, and troubleshoot with logs. The Routes section of the Coreflux HUB lets you configure routes with a visual editor or LoT code, view connected and disconnected routes, and inspect route-specific logs.

When to Use It

  • Adding routes — Create routes from templates (PostgreSQL, MongoDB, Modbus, etc.) or write LoT code directly
  • Configuring routes — Edit configuration, events, mappings, and tags in Visual or LoT mode
  • Monitoring — See which routes are connected and which are not, and view real-time status metrics
  • Troubleshooting — View route logs, filter by level, and export for analysis

Routes Tools

Routes Configuration

Edit routes, view status (connected/not connected), and delete routes.

Routes Monitoring

View real-time status metrics and logs filtered by route, export as JSON/CSV/LOG.

Route List and Status

The Routes Manager displays all defined routes as cards. Each route card shows the route name, type (e.g., SIEMENS_S7), and a status indicator dot in the top-right corner. The dot color tells you the current connection state at a glance:
ColorStatus
GreenConnected
RedNot connected
GrayUnknown status
YellowReconnecting
Coreflux HUB route card for a Siemens S7 route with a green status dot indicating connected
Use the controls at the top to sort routes by name and filter by type. The Delete All button removes all routes, and the Add a route + button opens the route creation options.

Route Card Actions

Click on a route card to open its context menu with three options:
Coreflux HUB route card context menu showing Configuration, Monitor, and Documentation options with icons
ActionDescription
ConfigurationOpens the Routes Configuration panel to edit settings, events, mappings, and tags
MonitorOpens the Routes Monitoring window with a Status tab (connection, health, messages, errors) and a Logs tab (real-time route logs)
DocumentationOpens the Coreflux documentation for the route type directly inside the HUB

Route Documentation

The Documentation option opens the Coreflux docs page for the route type in an embedded viewer inside the HUB. This gives you quick access to syntax reference, configuration parameters, and examples without leaving the interface.
Coreflux HUB embedded documentation viewer showing Siemens S7 Route docs with syntax, configuration, and addressing reference

Adding a Route

Click Add a route + in the Routes Manager. The Create a New Route modal appears with two options:
  • Start from Scratch — Opens the LoT code editor where you write your route definition from scratch
  • Start from Template — Opens the template list where you pick a route type and configure it visually
Coreflux HUB Create a New Route modal with Start from Scratch and Start from Template options
MethodBest For
Start from ScratchCustom routes, full control over syntax, copying from documentation
Start from TemplateQuick setup for common route types with a visual configuration form

Start from Scratch

Select Start from Scratch to open the Create Route with Code Editor modal. Write your route definition in LoT language and click Create Route to deploy.
Coreflux HUB Create Route with Code Editor modal showing a LoT code editor with placeholder text and Create Route button
Example:
DEFINE ROUTE MyPostgres WITH TYPE POSTGRESQL
  ADD SQL_CONFIG
    WITH SERVER "localhost"
    WITH PORT '5432'
    WITH DATABASE "iot_data"
    WITH USERNAME "admin"
    WITH PASSWORD "your_password"
  ADD EVENT StoreSensor
    WITH SOURCE_TOPIC "sensors/#"
    WITH QUERY "INSERT INTO readings (topic, value) VALUES ('{topic}', '{value.json}')"

Start from Template

Select Start from Template to open the templates list. Choose a route type to configure it visually.
  1. Select Start from Template from the Create a New Route modal.
  2. The Templates list opens with available route types.
Coreflux HUB Templates modal showing PostgreSQL, MariaDB, MySQL, SQL Server, and MongoDB route types with descriptions and search field
  1. Use Search by type… to filter (e.g., “PostgreSQL”, “Modbus”).
  2. Select a template. The route creation view opens with a configuration form.
When you select a template, a configuration tab opens with Visual Mode and LoT Mode. Visual Mode displays all configuration fields and events as a form. LoT Mode shows the raw LoT code.
Coreflux HUB Create PostgreSQL Route in Visual Mode showing SQL Configuration fields (SERVER, PORT, DATABASE, USERNAME) with required/optional badges and data types
  • Configuration — Fill in the connection fields (server, port, database, username, password). Required fields are marked with a badge. Use + Add Field to include optional parameters.
  • Events — Define events for the route (e.g., queries triggered by MQTT messages).
  • LoT Mode — Switch to LoT Mode to view or edit the generated LoT code directly.
  1. Fill in the configuration fields and add events as needed.
  2. Click Create Route to deploy. Click Cancel to discard.
Templates are available for all supported route types. See the Routes Overview for the full list of available types and their documentation.

Next Steps

Routes Configuration

Edit routes with Visual or LoT mode.

LoT Routes

Learn route syntax and available route types.