Sha256: 7071bc5a110e5f8ff5796bf8772c6f794cde4933615e1a35715d70860794b5e2

Contents?: true

Size: 204 Bytes

Versions: 1

Compression:

Stored size: 204 Bytes

Contents

#!/usr/bin/env ruby

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

require 'mqtt'

client = MQTT::Client.new('mqtt.example.com')
client.connect 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.3 examples/simple_publish.rb