Skip to content

Rule Engine

NanoMQ rule engine is an optional tool for managing complex message routing scenarios, triggering automated actions, and integrating other systems with your MQTT setup.

This chapter is divided into two main parts: configuration via WebHook or the configuration file.

Configure with WebHook

WebHook in NanoMQ provides a means for real-time communication with other applications through HTTP requests triggered by certain events. This section introduces how to enable the WebHook feature and describes how to define the rules that govern when and how these WebHooks are triggered.

Configure with Configuration File

Currently, the SQL Rule Engine is under open-source maintenance. Please be aware that it may contain security vulnerabilities.

The section covers how to configure the rule engine through the configuration file nanomq.conf. It covers the available rule engine options, including

  • Repub rule
  • Data persistence to SQLite
  • Data persistence to MySQL