00imvj00 / Bus

Pure Mqtt client written in Elixir for Elixir

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Pure Mqtt client written in Elixir for Elixir

License:Apache License 2.0


Languages

Language:Elixir 100.0%