Sha256: 8e925931c9103233b5dbfeaa3f9c4a800b0d24943a91cd456bcf48cdece59310

Contents?: true

Size: 213 Bytes

Versions: 1

Compression:

Stored size: 213 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', 'x' * 300)

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mqtt-0.0.2 examples/simple_publish.rb