Sha256: 0e3bb782d4c459acaf509710f8648655ecb0458e927f9c405a67df3c7f54ce6e

Contents?: true

Size: 230 Bytes

Versions: 1

Compression:

Stored size: 230 Bytes

Contents

#!/usr/bin/env ruby

$:.unshift File.dirname(__FILE__)+'/../lib'

require 'mqtt'

client = MQTT::Client.new('mqtt.example.com')
client.connect('simple_publish_example') do |c|

  c.publish('test', "The time is: #{Time.now}")

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mqtt-0.0.1 examples/simple_publish.rb