[![]( "Apache 2.0 Licensed")](
[![Hex version]( "Hex version")](

An Elixir behaviour that makes it possible to communicate with a MQTT broker.

## Installation

This project is available on hex, and it can be installed by adding the following to the project mix-file:

``` elixir
  defp deps do
    [{:vmq_commons, github: "erlio/vmq_commons", manager: :rebar3},
     {:gen_mqtt, "~> 0.2.0"}]

**Notice**, you will need to fetch the `:vmq_commons` package from GitHub for this module to work. `vmq_commons` needs to be added to the hex repository before this step can be omitted. I hope I can solve this issue soon.

Also notice, this project should follow [Semantic Versioning 2.0.0](, so you should be safe if you fix the version number to a specific major or minor version. The project might change, if something can be done smarter or if the underlying `:gen_emqtt` implementation changes radically.

## Legal stuff

This project rely on work done by [Erlio GmbH Basel Switzerland](, in specific the dependency [vmq_commons]( which is released under an [Apache 2.0]( This project, GenMQTT, is simply a wrapper on top of this work, and thus claim no copyright or ownership to any properties that belong to Erlio.

**Please notice**: Being a third party module all bug reports found in it should be raised directly in the [issues on this projects GitHub page](, unless it is a issue found in vmq_commons.

### License

Copyright 2016 Martin Gausby

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.