nodemcu-firmware/docs/en/modules
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
..
adc.md Add small clarification for 'system restart' 2016-05-18 22:27:23 +02:00
ads1115.md introduced sign into read and startread (#2246) 2018-02-07 21:29:17 +01:00
adxl345.md remove deprecated init functions in adxl345, am2320, bme280, bmp085, hdc1080, hmc58831, l3g4200d, HDC1000, lm92 (#2276) 2018-03-12 07:56:07 +01:00
am2320.md remove deprecated init functions in adxl345, am2320, bme280, bmp085, hdc1080, hmc58831, l3g4200d, HDC1000, lm92 (#2276) 2018-03-12 07:56:07 +01:00
apa102.md Fix and extend sample in apa102 module docu (#1689) 2016-12-30 07:03:13 +01:00
bit.md Add examples to the "bit" module documentation (#2528) 2018-11-03 21:45:08 +01:00
bloom.md Addition of a Bloom Filter object (#2176) 2017-12-03 13:10:59 +01:00
bme280.md remove deprecated init functions in adxl345, am2320, bme280, bmp085, hdc1080, hmc58831, l3g4200d, HDC1000, lm92 (#2276) 2018-03-12 07:56:07 +01:00
bme680.md Add BME680 module (#2151) 2017-11-19 20:49:07 +01:00
bmp085.md remove deprecated init functions in adxl345, am2320, bme280, bmp085, hdc1080, hmc58831, l3g4200d, HDC1000, lm92 (#2276) 2018-03-12 07:56:07 +01:00
cjson.md Add support for streaming JSON encoder/decoder (#1755) 2017-03-22 11:24:32 +11:00
coap.md Turn of x bit on some non-executable source files 2018-03-17 00:43:51 +00:00
color-utils.md Fix WS2812 effects documentation 2018-02-13 12:34:04 +01:00
cron.md Add note about GMT/UTC 2018-10-11 23:43:13 +01:00
crypto.md Added crypto.new_hmac() feature. (#1499) 2016-09-16 17:46:39 +02:00
dht.md Set admonition types correctly (subjective) 2016-07-14 22:52:30 +02:00
ds18b20.md Link ds18b20 C/Lua module docs 2017-08-16 21:32:04 +02:00
encoder.md Add meta-info block to every module doc page 2016-03-06 08:56:28 +01:00
enduser-setup.md EUS bug fixes (#1605) 2016-12-01 22:12:47 +01:00
file.md file: list now takes optional pattern for filtering (#2452) 2018-08-10 16:38:48 +01:00
gdbstub.md Fix documentation for gdbstub module. (#2549) 2018-11-08 21:00:37 +01:00
gpio.md Updated documentation for gpio.pulse (#2485) 2018-09-10 13:17:24 +02:00
hdc1080.md remove deprecated init functions in adxl345, am2320, bme280, bmp085, hdc1080, hmc58831, l3g4200d, HDC1000, lm92 (#2276) 2018-03-12 07:56:07 +01:00
hmc5883l.md remove deprecated init functions in adxl345, am2320, bme280, bmp085, hdc1080, hmc58831, l3g4200d, HDC1000, lm92 (#2276) 2018-03-12 07:56:07 +01:00
http.md Add missing period 2017-07-01 18:32:44 +02:00
hx711.md Add meta-info block to every module doc page 2016-03-06 08:56:28 +01:00
i2c.md Fix the use of the term "Lua" 2017-12-25 11:40:33 +01:00
l3g4200d.md remove deprecated init functions in adxl345, am2320, bme280, bmp085, hdc1080, hmc58831, l3g4200d, HDC1000, lm92 (#2276) 2018-03-12 07:56:07 +01:00
mcp4725.md Add mcp4725 module (#1966) 2017-05-21 16:30:26 +02:00
mdns.md Add note about Lua mDNS client 2018-07-01 21:28:08 +02:00
mqtt.md Handle large/chunked/fragmented MQTT messages properly (#2571) 2018-11-30 22:12:46 +01:00
net.md Unwind bit.ly link 2017-04-22 22:57:37 +02:00
node.md Add compression to LFS images (#2448) 2018-09-29 16:57:51 +03:00
ow.md typo fixes 2017-03-15 23:12:57 +01:00
pcm.md Set admonition types correctly (subjective) 2016-07-14 22:52:30 +02:00
perf.md Various minor bits of cleanup (#1647) 2016-12-25 10:45:34 +11:00
pwm.md Add meta-info block to every module doc page 2016-03-06 08:56:28 +01:00
rc.md RC module documentation (#2473) 2018-09-02 16:37:09 +02:00
rfswitch.md Fix the use of the term "Lua" 2017-12-25 11:40:33 +01:00
rotary.md Fixed the documentation to match the implementation 2016-04-25 21:34:21 -04:00
rtcfifo.md Fix markdown syntax 2017-02-09 21:01:47 +01:00
rtcmem.md Add meta-info block to every module doc page 2016-03-06 08:56:28 +01:00
rtctime.md Fix a number of issues with the gpio.pulse family of functions (#2260) 2018-02-23 23:12:23 +01:00
si7021.md Put functions in alphabetical order 2017-04-30 20:08:37 +02:00
sigma-delta.md Fix tiny issue in sigma-delta docs 2016-04-25 14:54:36 +02:00
sjson.md Add sjson streaming example 2018-02-04 12:45:27 +01:00
sntp.md Ignore lookup errors on sync request unless all lookups fail (#2298) 2018-03-21 07:02:25 +01:00
somfy.md Fix Somfy docs 2016-12-01 21:57:24 +01:00
spi.md Document HSPI pin functions (#1790) 2017-02-10 21:48:32 +01:00
sqlite3.md Fix config reference 2018-04-24 13:58:10 +02:00
struct.md Add meta-info block to every module doc page 2016-03-06 08:56:28 +01:00
switec.md Set admonition types correctly (subjective) 2016-07-14 22:52:30 +02:00
tcs34725.md Editorial fix 2018-04-18 19:58:20 +02:00
tls.md Update mbedTLS to 2.7.0 (#2267) 2018-03-03 23:28:26 +01:00
tm1829.md Added support for tm1829 baed led controllers (#1330) 2016-06-03 23:47:36 +02:00
tmr.md Refactor timer suspend portion of node.sleep (pmsleep) (#2287) 2018-04-13 21:41:14 +02:00
tsl2561.md Add meta-info block to every module doc page 2016-03-06 08:56:28 +01:00
u8g2.md Update u8g2 to v2.23.18 (#2500) 2018-10-07 21:46:56 +01:00
uart.md Expose UART 1 (#1934) 2017-04-24 22:06:54 +02:00
ucg.md Submodulify ucg and update to v1.5.2 (#2503) 2018-10-19 21:18:50 +01:00
websocket.md Fix the use of the term "Lua" 2017-12-25 11:40:33 +01:00
wifi.md Added functions wifi.getcountry() and wifi.setcountry() (#2330) 2018-03-31 09:06:18 +02:00
wifi_monitor.md Improve documentation for wifi.monitor 2018-08-05 17:58:04 +02:00
wps.md Updated documentation and example for wps.start() (#1933) 2017-04-24 09:59:30 +02:00
ws2801.md Add meta-info block to every module doc page 2016-03-06 08:56:28 +01:00
ws2812-effects.md Fix WS2812 effects documentation 2018-02-13 12:34:04 +01:00
ws2812.md Update telnet link (#1918) 2017-04-18 21:04:36 +02:00
xpt2046.md Add driver for XPT2046 touch controller (#1848) 2017-03-09 07:20:01 +01:00