No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
i-n-g-o Put keepAliveTick in more sensible location (#140)
* Put keepAliveTick in more sensible location

In short, keepAliveTick should not be reset every time a packet is received, since, for ex, a QoS 0 packet does not require an Ack. Likely related to #128.

Steps to recreate issue:
- Set client keepalive to 20 seconds
- dont publish anything for > 30 seconds
- spam the device with something like snippit below:

```
#!/bin/bash
SPAM_DELAY=1;
while :
do
mosquitto_pub -h hostname -t /test/topic -m 'test playload'
sleep $SPAM_DELAY;
done
```

* reset keepalive tick when send msg

---
https://github.com/tuanpmt/esp_mqtt commit:
c7eda3308454b353ca19646de8dfdcba41d4904e
Latest commit e5239d9 Sep 4, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples update examples Apr 13, 2016
src Put keepAliveTick in more sensible location (#140) Sep 4, 2017
.gitignore add gitignore Aug 1, 2015
README.md format Aug 3, 2015
keywords.txt add initial code Aug 1, 2015
library.properties version pump 1.0.1, add commit sha-1 Feb 26, 2017

README.md

MQTT

A Wrapper around mqtt for Arduino to be used with esp8266 modules.

It wraps a slightly modified version of mqtt for esp8266 ported by Tuan PM. Original code for esp: https://github.com/tuanpmt/esp_mqtt Original code for contiki: https://github.com/esar/contiki-mqtt

====

secure libssl:

If you want to use secure communication, please use the secure-branch!