nodemcu-firmware/docs
Nathaniel Wesley Filardo 30f706fb03 WIP: MQTT fixes (#2986)
* mqtt: expose "connfail" callback via :on()

This makes it just like all the other callbacks in the module and is a
revision of behavior called out in
https://github.com/nodemcu/nodemcu-firmware/pull/2967

* mqtt: clarify when puback callback fires

* mqtt: Don't reference stack buffers from the heap

The confusingly-named "mqtt_connection_t" object is just a triple of
  - a serialized mqtt message pointer and length
  - a buffer pointer (to which the above can be written)
  - a message identifier

The last of these must be passed around the mqtt state machine, but the
first two are very local and the buffer is always sourced from the C
stack.  Unfortunately, because the entire structure is persisted in the
heap, some callers assume that they can always use the structure without
reinitialization (see mqtt_socket_close), which will trash the C stack.

Sever the pairing between message id and local state, punt the local
state entirely out of the heap, and rename things to be less confusing.
2020-06-09 22:26:52 +02:00
..
css Add Getting Started page (#2487) (#2490) 2018-09-17 17:55:11 +01:00
img Save the post data in a file on the filesystem (#2810) 2019-07-08 21:48:16 +02:00
js Only process relative links on RTD 2019-02-11 22:52:26 +01:00
lua-modules Add Lua module for Gossip protocol (#3013) 2020-06-09 22:26:52 +02:00
modules WIP: MQTT fixes (#2986) 2020-06-09 22:26:52 +02:00
build.md Also adapt documentation for building 2019-07-27 05:36:05 +00:00
compiling.md SDK 3.0 release (#2692) 2019-04-05 16:01:45 +01:00
extn-developer-faq.md trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
flash.md Resolve merge conflict on docs/index.md 2019-04-04 13:29:22 +01:00
getting-started.md Small fixes 2019-06-22 00:39:14 +02:00
hardware-faq.md trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
index.md Fix WiFi example 2019-03-09 13:46:30 +01:00
lcd.md trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
lfs.md trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
lua-developer-faq.md trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
sdcard.md Updated FatFS from 0.12a to 0.13c (#2608) 2019-01-16 22:30:42 +01:00
spiffs.md trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
support.md Re-organize documentation 2019-01-13 22:01:57 +01:00
upload.md trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00