njh / ruby-mqtt

Pure Ruby gem that implements the MQTT protocol, a lightweight protocol for publish/subscribe messaging.
http://www.rubydoc.info/gems/mqtt
MIT License
541 stars 135 forks source link

Sample in README.MD is wrong #68

Closed jhiemer closed 9 years ago

jhiemer commented 9 years ago

Hi, I think the sample in the README.MD should be:

MQTT::Client.connect(endpoint) do |c|
  c.publish('test', 'message')
end

Instead of 'topic'.

jhiemer commented 9 years ago

Pull request created: https://github.com/njh/ruby-mqtt/pull/69

njh commented 9 years ago

Thanks!