-
Notifications
You must be signed in to change notification settings - Fork 238
Support for QoS1 and QoS2 publishing/subscribing #49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for raising this. The underlying library (Paho) uses constants to activate QOS1 an QOS2 and as the Arduino IDE offers no library configuration via constants, enabling these features would result in more program space usage for all users. Therefore, this feature is delayed until the Arduino IDE offers a suitable solution. Ongoing discussions: |
@q2dg what boards would you like to use the QoS1 and QoS2 with? |
Since the increase in programming space usage is minimal, I think we should enable support for all QoS levels in v2. The usage table again for future reference:
|
@sandeepmistry Hello! Well, I'm not a skilled technician but I think SAMD's boards (Zero and MKRxxx) -at least- could do the job, don't you think? |
@q2dg yes, even AVR boards like the Uno should be fine. See comments in #53 (comment) for more metrics. |
I am trying to use this library with ESP8266 and QoS1. I have not written any app code yet, just in selecting sutable library yet, but I suppose that some modification would be useful in src/lib/MQTTClient.h:
Please, fix me if I am wrong! |
@alim-s-ajiev The library has been tested and successfully used with the ESP8266. No modification should be necessary to use it with the current feature set. |
Yes, you are right! It turns out that yield() is called inside cycle method for ESP8266 WiFi. Thank you very much! |
This is beeing addressed in #59. |
I know in Readme there is this pharagraph: "The first release of the library only supports QoS0 and the basic features to get going. In the next releases more of the features will be available. Please create an issue if you need a specific functionality." So, well...I'm creating the issue, then.
Thanks
PS: This alternative (https://github.com/adafruit/Adafruit_MQTT_Library) supports QoS1 publishing. This other (https://github.com/knolleary/pubsubclient) supports QoS1 subscribing
The text was updated successfully, but these errors were encountered: