Metainformationen zur Seite

MQTT in LoxBerry 2.x

What's New in LoxBerry 2.x

MQTT support

In one of the upcoming minor releases, the MQTT Gateway plugin will become part of LoxBerry-Core. The MQTT protocol's target is to standardize the communication between IoT devices. Most home automation software supports MQTT as integral part, many end devices talk MQTT, and lots of Device-To-MQTT software adapters are out in the wild. 

We follow this standard, and complement our vision to standardize the way how LoxBerry plugins talk to the Miniserver, and the Miniserver talks to a plugin, or even plugins talk to other plugins or mqtt-enabled devices directly. This will assist developers and users to have a clear way how they need to configure their Miniserver to receive and send data.

Even the MQTT Gateway is currently not included in LoxBerry, LoxBerry 2.0 adds the following functions:

  • Get the MQTT broker connection and credentials
  • Get the MQTT Gateway UDP-Port to easily publish messages
  • Register your own subscriptions, conversions and resetAfterSend settings in your plugin (during installation and at run-time) in the MQTT Gateway
  • Ships with a full MQTT library for Perl
  • Ships with a full MQTT library for PHP
  • Enables other languages (Node.js, Python,…) to get the connection settings and credentials by json configuration

See MQTT Gateway for plugin developers

All library functions will migrate fluently as soon as MQTT is included in LoxBerry-Core. Also an installed MQTT Gateway plugin will migrate without disruption.

And, to make clear: LoxBerry never shuts down any of the other connection possibilities.