nodemcu-firmware/docs/en
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
..
modules Handle large/chunked/fragmented MQTT messages properly (#2571) 2018-11-30 22:12:46 +01:00
build.md Fix Git spelling and add LFS 2018-08-13 14:56:21 +02:00
compiling.md Add compression to LFS images (#2448) 2018-09-29 16:57:51 +03:00
extn-developer-faq.md Transfer build options from README to docs (#1860) 2017-03-12 21:43:46 +01:00
flash.md Add Getting Started page (#2487) 2018-09-17 17:36:09 +01:00
getting-started.md Add Getting Started page (#2487) 2018-09-17 17:36:09 +01:00
hardware-faq.md Remove hardware FAQ, fixes #2015 2017-06-27 17:17:28 +02:00
lcd.md LFS patch updates following review II and testing 2018-06-22 22:29:16 +01:00
lfs.md Add Getting Started page (#2487) 2018-09-17 17:36:09 +01:00
lua-developer-faq.md Add Getting Started page (#2487) 2018-09-17 17:36:09 +01:00
sdcard.md Correct typo 2017-09-14 20:46:22 +02:00
spiffs.md Fixes the spiffsimg issues (#1502) (#1503) 2016-09-21 11:45:53 +10:00
support.md Fix typo 2016-09-26 21:53:28 +02:00
upload.md Reword the Compiling Lua on your PC for Uploading section for LFS. 2018-08-27 01:09:26 +01:00