Skip to content

sunnyjain1/HTTP-TO-MQTT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTTP TO MQTT

Server which convert HTTP request to MQTT request written in Erlang.

Prerequisites

You should have Git, Erlang 17.x and Vernemq installed in your PC to use this Plugin.

For Erlang 17.x you can download it from here.

For Vernemq you can install from source file. Here is the link to the source.

For Installing Git you can look here.

Installation

To install the plugin.
  1. Clone the Directory using command

    $ git clone https://github.com/sunnyjain1/http_to_mqtt.git

  2. Go in the clone directory using command

    $ cd http_to_mqtt

  3. Compile the plugin using commands

    $ make $ ./rebar compile

  4. Start the server using command

    $ vernemq start ("vernemq restart" if already started)

  5. Enable the plugin using command(Before eenable the plugin you should start inets application)

    $ vmq-admin plugin enable -n inets -p (In my case it is usr/local/lib/erlang/lib/inets-5.10.6) $ vmq-admin plugin enable -n http_to_mqtt -p

  6. You can check the plugin starts working by using the command

    $ vmq-admin plugin show