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

client_id typo #20

Closed Anubisss closed 11 years ago

Anubisss commented 11 years ago

This fixes the bug that client_id is nil when you try to define it in this way:

MQTT::Client.connect(:remote_host => broker, :remote_port => port, :client_id => ci) do |client| ... end

njh commented 11 years ago

Thanks for this fix - disappointed that I didn't have a test for this :-(

Anubisss commented 11 years ago

No problem. :)