Closed neilyoung closed 7 years ago
The implementation seems to not work on a thread. Can you confirm?
Seems to not work for me:
MQTT::Client.connect('localhost') do |c| upload = Thread.new do while true c.publish('/message', 'message') sleep(1) end end end
Runs just once
Well, my bad. This works well:
Thread.new do # Publish example MQTT::Client.connect('localhost') do |c| while true c.publish('/message', 'message') sleep(1) end end end
The implementation seems to not work on a thread. Can you confirm?
Seems to not work for me:
Runs just once