Sha256: 5878cd5c74ff2dec55b6b881618db422fbae958e3ca0343b0555a10dee0bce57

Contents?: true

Size: 211 Bytes

Versions: 1

Compression:

Stored size: 211 Bytes

Contents

#!/usr/bin/env ruby

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

require 'mqtt/client'

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.4 examples/simple_publish.rb