All Projects → suvash → Hulaaki

suvash / Hulaaki

Licence: mit
DEPRECATED : An Elixir library (driver) for clients communicating with MQTT brokers(via the MQTT 3.1.1 protocol).

Programming Languages

elixir
2628 projects
erlang
1774 projects

Projects that are alternatives of or similar to Hulaaki

Rabbitmq Mqtt
RabbitMQ MQTT plugin
Stars: ✭ 169 (+46.96%)
Mutual labels:  mqtt, messaging
Vernemq
A distributed MQTT message broker based on Erlang/OTP. Built for high quality & Industrial use cases.
Stars: ✭ 2,628 (+2185.22%)
Mutual labels:  mqtt, messaging
Crossbar
Crossbar.io - WAMP application router
Stars: ✭ 1,957 (+1601.74%)
Mutual labels:  mqtt, messaging
Ejabberd
Robust, Ubiquitous and Massively Scalable Messaging Platform (XMPP, MQTT, SIP Server)
Stars: ✭ 5,077 (+4314.78%)
Mutual labels:  mqtt, messaging
Emqx
An Open-Source, Cloud-Native, Distributed MQTT Message Broker for IoT.
Stars: ✭ 8,951 (+7683.48%)
Mutual labels:  mqtt, messaging
Mainflux
Industrial IoT Messaging and Device Management Platform
Stars: ✭ 1,341 (+1066.09%)
Mutual labels:  mqtt, messaging
Enmasse
EnMasse - Self-service messaging on Kubernetes and OpenShift
Stars: ✭ 185 (+60.87%)
Mutual labels:  mqtt, messaging
Hivemq Community Edition
HiveMQ CE is a Java-based open source MQTT broker that fully supports MQTT 3.x and MQTT 5. It is the foundation of the HiveMQ Enterprise Connectivity and Messaging Platform
Stars: ✭ 562 (+388.7%)
Mutual labels:  mqtt, messaging
Activemq Artemis
Mirror of Apache ActiveMQ Artemis
Stars: ✭ 685 (+495.65%)
Mutual labels:  mqtt, messaging
Rabbitmq Server
Open source RabbitMQ: core server and tier 1 (built-in) plugins
Stars: ✭ 9,064 (+7781.74%)
Mutual labels:  mqtt, messaging
Applozic Ios Sdk
iOS Real Time Chat & Messaging SDK
Stars: ✭ 104 (-9.57%)
Mutual labels:  mqtt, messaging
Robotiq
Robotiq packages (http://wiki.ros.org/robotiq)
Stars: ✭ 110 (-4.35%)
Mutual labels:  driver
Qcloud Iot Sdk Embedded C
SDK for connecting to Tencent Cloud IoT from a device using embedded C.
Stars: ✭ 109 (-5.22%)
Mutual labels:  mqtt
Iot Sdk C
device sdk for baidu IoT Core service, in c. Including MQTT client
Stars: ✭ 108 (-6.09%)
Mutual labels:  mqtt
Core
🏡 Open source home automation that puts local control and privacy first.
Stars: ✭ 48,265 (+41869.57%)
Mutual labels:  mqtt
Wfpstarterkit
An example driver for Windows that shows how to set-up some basic components of the Windows Filtering Platform
Stars: ✭ 113 (-1.74%)
Mutual labels:  driver
Mqtt433gateway
MQTT 433.92 MHz radio-frequency device gateway
Stars: ✭ 111 (-3.48%)
Mutual labels:  mqtt
Android Speech Bubble
android ListView with speech bubbles to demonstrate the implementation speech bubbles of chat and message in application.
Stars: ✭ 107 (-6.96%)
Mutual labels:  messaging
Beamcommunity.github.com
From distributed systems, to robust servers and language design on the Erlang VM
Stars: ✭ 107 (-6.96%)
Mutual labels:  beam
Nanomq
Nano MQTT Broker - An Ultra-light and Blazing-fast MQTT Broker for IoT Edge
Stars: ✭ 104 (-9.57%)
Mutual labels:  mqtt

DEPRECATED : Hulaaki (हुलाकी)

Further DEVELOPMENT of this library has now been STOPPED. Please consider looking into other alternatives. (such as tortoise)

Build Status Coverage Status Hex.pm Project Inline docs

An Elixir library (driver) for clients communicating with MQTT brokers(via the MQTT 3.1.1 protocol).

A quick tour of the features implemented right now:

  • Qos 0 and Qos 1 support available. QoS 2 not supported yet.
  • SSL/TLS support available.
  • Automatic Ping based on keep alive timeout.
  • Internal packet id generation for control packets with variable header.

Naming

Hulaaki(pronouced as who-laa-key) is the phonetic spelling of the word हुलाकी in Nepali, which translates to postman.

Usage

Before we get started, keep in mind that you need a running MQTT server that you can connect to.

Add Hulaaki to your project dependencies in mix.exs

def deps do
  [{:hulaaki, "~> 0.1.2"} ]
end

The quickest way to get up and running with Hulaaki is to use the provided Client module. This Genserver module defines function callbacks that are intended to be overridden for required implementations. The callbacks are defined for each MQTT message that is being sent and received from the server.

Here's a list of all the override-able callbacks touse in your projects.

An example is present below that overrides some callbacks.

defmodule SampleClient do
  use Hulaaki.Client

  def on_connect_ack(options) do
    IO.inspect options
  end

  def on_subscribed_publish(options) do
    IO.inspect options
  end

  def on_subscribe_ack(options) do
    IO.inspect options
  end

  def on_ping_response(options) do
    IO.inspect options
  end
end

Load the project in iex -S mix to explore the SampleClient

$ iex -S mix

> {:ok, pid} = SampleClient.start_link(%{})

> options = [client_id: "some-name-7490", host: "localhost", port: 8883, ssl: true]

> SampleClient.connect(pid, options)

> SampleClient.ping(pid)

Please check the inline documentation and client_tcp_test.exs for more example usage and test strategy.

Changelog

Please check the CHANGELOG.md.

Documentation

Please refer to the inline documentation and client tests to explore the documentation for now.

Contributing

Pull requests with appropriate tests and improvements are welcome. Mosquitto is currently used by the author to test the library.

Running the tests

If you already have Elixir runtime and a MQTT broker running (on standard ports), you should just be able to run mix test as you would do on other mix projects.

As prefered by the author, you can also use the provided Makefile to run the tests. In that case, you'll need the following on your machine

  • GNU Make ( Version 4.0 and up )
  • Docker Engine ( Version 17.06.1 and hopefully upwards )
  • Docker Compose ( Version 1.16.1 and hopefully upwards )
# Get help
$ make help

# Start the MQTT servers (better to start separately to warm them up)
$ make start

# Run tests
$ make test

# Stop and cleanup docker instances etc.
# make stop
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].