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
publish qos 0,1,2; loop() before publish and subscribes; others #100
base: master
Are you sure you want to change the base?
Conversation
- default MQTT_KEEPALIVE increased to 30 seconds - esp8266 example updated with 1) onDisconnected callback 2) non blocking reconnect 3) authentication 4) last will message 5) payload cast to string - loop() now processes ALL available mqtt packets in the tcp buffer, not just the first - publish(), subscribe() and unsubscribe() calls are preceded by loop() call to process incoming messages (and ACKS) without filling the TCP buffer when multiple pub/sub actions are performed - publish() now supports QoS 0, 1 and 2. See the updated readme for more info - improved comments in readPacket(uint8_t* lengthLength) to better understand what it does Signed-off-by: Stefano Semeraro <semeraro.stefano@hotmail.it>
ops...test suite should be updated to match the new publish() signature :) |
In case of domain name resolution error result can be negative (see Dns.cpp:46) Signed-off-by: Stefano Semeraro <semeraro.stefano@hotmail.it>
Sorry, but I don't accept pull requests that contain multiple changes that have had no discussion. Especially when they are contained in a single commit so it is impossible to distinguish them. There are also a number of issues with the proposed changes. At a glance, they include:
If there are specific changes you want to make, raise an issue so we can discuss. |
I understand. Anyway i made those changes for myself and other people, because me and other students of my course (i'm an engineering student) need those features. I shared them here because maybe you too find them useful. If you want to pick a specific change go ahead and make a new commit, i will continue to use my fork. I want to use this space to thank you for the wounderful library, the most solid mqtt library for esp8266 that I found (now even more solid in my fork :D) |
OK, thank you for the contribution, but please take my feedback on board. When I'm next near my laptop, I will look at the subscribe/loop issue Thanks, Nick On Sun, 20 Dec 2015, 19:27 Suxsem notifications@github.com wrote:
|
Sure, I will do that definitely.
|
|
|
hi. what is the version of the pubsubclient library that supports all QoS qualities? where can I get to this library? |
Signed-off-by: Stefano Semeraro semeraro.stefano@hotmail.it
Resolve #98, #59, #55