examples/simple_publish.rb in mqtt-0.0.3 vs examples/simple_publish.rb in mqtt-0.0.4
- old
+ new
@@ -1,9 +1,9 @@
#!/usr/bin/env ruby
$:.unshift File.dirname(__FILE__)+'/../lib'
-require 'mqtt'
+require 'mqtt/client'
client = MQTT::Client.new('mqtt.example.com')
client.connect do |c|
c.publish('test', "The time is: #{Time.now}")