Sha256: 6557e3a9e2127b340bfbca825c93464cc733b5a78f2e8e8edd7c5c44defb30cc
Contents?: true
Size: 1.1 KB
Versions: 1
Compression:
Stored size: 1.1 KB
Contents
ruby-mqtt ========= Pure Ruby gem that implements the MQTT protocol, a lightweight protocol for publish/subscribe messaging. Installing ---------- You may get the latest stable version from Rubygems: $ gem install mqtt Synopsis -------- require 'rubygems' require 'mqtt' # Publish example MQTT::Client.connect('test.mosquitto.org') do |c| c.publish('topic', 'message') end # Subscribe example MQTT::Client.connect('test.mosquitto.org') do |c| # If you pass a block to the get method, then it will loop c.get('test') do |topic,message| puts "#{topic}: #{message}" end end Limitations ----------- * Only QOS 0 currently supported Resources --------- * MQTT Homepage: http://www.mqtt.org/ * GitHub Project: http://github.com/njh/ruby-mqtt * API Documentation: http://rubydoc.info/gems/mqtt/frames License ------- The ruby-mqtt gem is licensed under the terms of the MIT license. See the file LICENSE for details. Contact ------- * Author: Nicholas J Humfrey * Email: njh@aelius.com * Home Page: http://www.aelius.com/njh/
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mqtt-0.2.0 | README.md |