SimpleMqtt

A basic, single node pub-sub implementation where publishers and subscribers use topics and topics filters compatible with MQTT.

It cannot replace a real MQTT broker, but can be used in a simple IoT device, with multiple local sensors and actuators that have to communicate with each other.

Installation

If available in Hex, the package can be installed by adding simple_mqtt to your list of dependencies in mix.exs:

def deps do
  [
    {:simple_mqtt, "~> 0.1.0"}
  ]
end

Usage

In the following example, the current process:

API documentation

The ExDoc documentation can be found at https://hexdocs.pm/simple_mqtt.