Bus icon indicating copy to clipboard operation
Bus copied to clipboard

Pure Mqtt client written in Elixir for Elixir

Quick Start

If available in Hex, the package can be installed as:

  1. Add bus to your list of dependencies in mix.exs:

    def deps do
      [{:bus, "~> 0.2.0", runtime: false}]
    end
    
  2. Create your module and add use Bus into your module.

     defmodule Asdf.Bus do
      use Bus
    
      def start_link(_args) do
             Bus.start_link(__MODULE__, [])
      end
    end
    
  3. Add below details into your supervisor's children list.

    children = [
      %{
        id: Asdf.Bus,
        start: {Asdf.Bus, :start_link, [[]]}
      }
    ]
    

    Where Assdf is the module that will implement behaviour Bus.


Note

Detailed Documentation is coming soon.