MQTT client keep alive fixes

- Move keep alive management up to the Mongoose library
 - Only outgoing control messgaes should reset keepalive timer
 - Add unit test

https://forum.mongoose-os.com/discussion/1155/mqtt-keep-alive-compliance-issue

PUBLISHED_FROM=f86e30744ded53a6f7f96afec066b4ff3b4372c0
This commit is contained in:
Deomid Ryabkov authored and Cesanta Bot committed 2017-06-04 21:50:23 +00:00
1 parent e4309d472b
commit 023b55f2e5
3 files changed
+17 -2

No files matched your search

@@ -5,6 +5,7 @@ symbol_kind: "struct"
signature: |
struct mg_mqtt_proto_data {
uint16_t keep_alive;
double last_control_time;
};
---