eMQTT is a scalable, fault-tolerant and extensible mqtt broker written in Erlang/OTP.
eMQTT support MQTT V3.1 Protocol Specification.
eMQTT requires Erlang R17+.
$ git clone git://github.com/slimpp/emqtt.git
$ cd emqtt
$ make && make dist
$ cd rel/emqtt
$ ./bin/emqtt console
cp -R rel/emqtt $INSTALL_DIR
cd $INSTALL_DIR/emqtt
./bin/emqtt start
./bin/emqtt stop
......
......
eMQTT support http to publish message.
Example:
curl -v --basic -u user:passwd -d "topic=/a/b/c&message=hello from http..." -k http://localhost:8883/mqtt/publish
HTTP POST http://host:8883/mqtt/publish
Name | Description |
---|---|
topic | MQTT Topic |
message | Text Message |
The MIT License (MIT)
feng at slimchat.io