Server which convert HTTP request to MQTT request written in Erlang.
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.
To install the plugin.
-
Clone the Directory using command
$ git clone https://github.com/sunnyjain1/http_to_mqtt.git
-
Go in the clone directory using command
$ cd http_to_mqtt
-
Compile the plugin using commands
$ make $ ./rebar compile
-
Start the server using command
$ vernemq start ("vernemq restart" if already started)
-
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
-
You can check the plugin starts working by using the command
$ vmq-admin plugin show