Closed tindaio closed 8 years ago
I am also having this issue.
@tindaio Were you ever able to solve the problem?
@anarchocurious no solution yet. Using plain http get/post and json solution.
@tindaio This issue has already been fixed on master.
Changing my Gemfile entry to gem 'mqtt', github: 'njh/ruby-mqtt'
solves the problem for me.
I test a sample code and set QOS to 1. Why is the server is always sending the message to the subscribe client even the subscribe client already received the message and as I search https://github.com/njh/ruby-mqtt/pull/58 this should solve the problem because in MQTT specs the subscribe client should send PUBACK after receiving the message to tag that message is received. Did I missed something? Any tips?
sub.rb
pub.rb