nodemcu-firmware/docs
Johan Ström 2d958750b5 Handle large/chunked/fragmented MQTT messages properly (#2571)
* MQTT: handle large/chunked/fragmented messages properly

If a message spans multiple TCP packets it must be buffered before
delivered to LUA. Prior code did not do this at all, so this "patch"
really adds proper handling of fragmented MQTT packets.
This could also occur if multiple small messages was sent in a
single TCP packet, and the last message did not completely fit in that
packet.

Introduces a new option to the mqtt.Client constructor:
max_publish_length which defaults to 1024

Introduces a new 'overflow' callback.

Fixes issue #2308 and proper fix for PR #2544.

* mqtt.md: clarified heap allocation

* mqtt: ensure ack is sent for overflowed publish

If QoS is used we should still acknowledge that we received it, or server might retransmit it later.
2018-11-30 22:12:46 +01:00
..
css Add Getting Started page (#2487) 2018-09-17 17:36:09 +01:00
en Handle large/chunked/fragmented MQTT messages properly (#2571) 2018-11-30 22:12:46 +01:00
img Remove custom favicon from docs 2018-02-11 23:22:15 +01:00
js Minor MkDocs fixes for 1.x compliance 2018-09-08 00:03:35 +02:00
index.md Remove dead link to fix RTD build 2018-09-17 20:33:44 +02:00