Sha256: 7e286fd599b5374ec2c35ab49740aa8164f74059db472473ed020d094c851ad1
Contents?: true
Size: 275 Bytes
Versions: 1
Compression:
Stored size: 275 Bytes
Contents
#!/usr/bin/env ruby $:.unshift File.dirname(__FILE__)+'/../lib' require 'mqtt' client = MQTT::Client.new('mqtt.example.com') client.connect('simple_get') client.subscribe('test') loop do topic,message = client.get puts "#{topic}: #{message}" end client.disconnect
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mqtt-0.0.2 | examples/simple_get.rb |