Skip to main content

Learn by Building

The best way to master LoT is through hands-on practice. These tutorials are interactive notebooks you can download and run in VS Code—each one builds your skills progressively.
Start with Basics, then branch out. Complete the Basics tutorials first to understand LoT fundamentals, then explore the topics most relevant to your projects.

Learning Path

Follow this recommended progression from beginner to advanced:

Basics

Start here to learn the fundamentals of LoT Actions and event-driven programming.

Timed Actions

Create actions that run on schedules—heartbeats, counters, and periodic tasks. Learn ON EVERY triggers and state persistence.

Topic Actions

React to MQTT messages in real-time. Master ON TOPIC triggers, wildcards, and payload processing.

What You’ll Learn

TutorialKey Concepts
Timed ActionsON EVERY syntax, time units, PUBLISH TOPIC, timestamps, counters
Topic ActionsON TOPIC triggers, wildcards (+, #), PAYLOAD, topic parsing

Logic

Build intelligent automation with conditional logic and decision-making.

Conditional Logic

Implement IF/ELSE statements, comparisons, and boolean logic. Build threshold monitors, state machines, and quality control systems.

What You’ll Learn

TutorialKey Concepts
Conditional LogicIF/ELSE statements, comparison operators, AND/OR/NOT, text matching with CONTAINS

Models

Structure and transform your data with LoT Models.

Basic Models

Define data schemas with typed fields. Create structured sensor readings, equipment status reports, and alarm messages.

Action Models

Publish models dynamically from Actions. Combine event-driven logic with structured data output.

Model Inheritance

Extend base models to create specialized variants. Build hierarchies for sensors, equipment, and production data.

What You’ll Learn

TutorialKey Concepts
Basic ModelsDEFINE MODEL, field types (STRING, INT, DOUBLE, BOOL), triggers, topic sources
Action ModelsPUBLISH MODEL, dynamic field values, combining Actions with Models
Model InheritanceEXTENDS, base models, field overrides, model hierarchies

Routes

Connect your LoT system to external databases, APIs, and other MQTT brokers.

MQTT Bridge

Connect multiple MQTT brokers. Forward messages, sync data between systems, and build distributed architectures.

Database Routes

Store MQTT data in SQL databases. Configure connections, map topics to tables, and query historical data.

REST API Routes

Integrate with HTTP APIs. Send data to web services, receive webhooks, and connect to cloud platforms.

What You’ll Learn

TutorialKey Concepts
MQTT BridgeTYPE MQTT_BRIDGE, source/destination config, mappings, bidirectional sync
Database RoutesTYPE DATABASE, connection strings, table mappings, data persistence
REST API RoutesTYPE REST_API, HTTP methods, headers, authentication, request/response handling

Python Integration

Extend LoT with Python for complex calculations, data processing, and advanced logic.

Simple Python

Get started with Python in LoT. Learn the script format, parameter passing, and return value handling.

Advanced Python

Build sophisticated data pipelines. Use external libraries, handle JSON, and implement validation logic.

What You’ll Learn

TutorialKey Concepts
Simple PythonCALL PYTHON syntax, script format, parameters, return values
Advanced PythonJSON processing, external libraries, error handling, complex transformations

Advanced Topics

Master architectural patterns and optimization techniques for production systems.

Mapping vs Events

Understand route architecture patterns. Choose between mappings and events for optimal performance. Design scalable integration systems.

What You’ll Learn

TutorialKey Concepts
Mapping vs EventsPerformance trade-offs, fan-out patterns, aggregation, hybrid architectures

Quick Reference

Need to review a specific concept? Here’s where to find it:
ConceptTutorial
Time-based triggersTimed Actions
Message triggersTopic Actions
IF/ELSE logicConditional Logic
Data schemasBasic Models
Dynamic publishingAction Models
Schema inheritanceModel Inheritance
Broker bridgingMQTT Bridge
Data storageDatabase Routes
HTTP integrationREST API Routes
Python scriptingSimple Python
Advanced processingAdvanced Python
Route optimizationMapping vs Events

Download Tutorials

All tutorials are available in the Coreflux Community GitHub repository:

LoT Tutorials Repository

Download complete tutorial notebooks with documentation, examples, and exercises.

Getting the Tutorials

1

Clone or Download

Clone the repository or download as ZIP from GitHub.
2

Open in VS Code

Open any .lotnb file—VS Code automatically uses the LoT Notebooks extension.
3

Connect Your Broker

Configure your broker credentials, then start running cells.

Next Steps

Usage Guide

Master cell execution, broker commands, and troubleshooting.

LoT Language Reference

Explore the complete LoT syntax reference and advanced features.