nodemcu-firmware/app
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
..
coap Rebased against current dev, tweaks for clean compile 2020-06-09 22:26:06 +02:00
crypto SSL rampage (#2938) 2020-06-09 22:26:06 +02:00
dht Dev make cleanup (#2842) 2019-07-23 18:47:18 +03:00
driver Add DCC decoder module (#2905) 2020-06-09 22:26:06 +02:00
esp-gdbstub Dev make cleanup (#2842) 2019-07-23 18:47:18 +03:00
fatfs Dev make cleanup (#2842) 2019-07-23 18:47:18 +03:00
http Dev make cleanup (#2842) 2019-07-23 18:47:18 +03:00
include Add flag to disable start-up banner (#3026) 2020-06-09 22:26:52 +02:00
libc Dev make cleanup (#2842) 2019-07-23 18:47:18 +03:00
lua Add flag to disable start-up banner (#3026) 2020-06-09 22:26:52 +02:00
lwip Add support for DCHP NTP server (option 42) (#2709) 2019-07-27 08:21:35 +02:00
mbedtls SSL rampage (#2938) 2020-06-09 22:26:06 +02:00
modules WIP: MQTT fixes (#2986) 2020-06-09 22:26:52 +02:00
mqtt WIP: MQTT fixes (#2986) 2020-06-09 22:26:52 +02:00
net Dev make cleanup (#2842) 2019-07-23 18:47:18 +03:00
pcm Dev make cleanup (#2842) 2019-07-23 18:47:18 +03:00
platform Expose CPU CCOUNT register as tmr function (#2906) 2020-06-09 22:26:52 +02:00
pm Lua 5.1 to 5.3 realignement phase 1 2020-06-09 22:26:06 +02:00
sjson Dev make cleanup (#2842) 2019-07-23 18:47:18 +03:00
smart Dev make cleanup (#2842) 2019-07-23 18:47:18 +03:00
spiffs Dev make cleanup (#2842) 2019-07-23 18:47:18 +03:00
sqlite3 Dev make cleanup (#2842) 2019-07-23 18:47:18 +03:00
tsl2561 Dev make cleanup (#2842) 2019-07-23 18:47:18 +03:00
u8g2lib Dev make cleanup (#2842) 2019-07-23 18:47:18 +03:00
ucglib Dev make cleanup (#2842) 2019-07-23 18:47:18 +03:00
user Lua 5.1 to 5.3 realignement phase 1 2020-06-09 22:26:06 +02:00
uzlib Dev make cleanup (#2842) 2019-07-23 18:47:18 +03:00
websocket Dev make cleanup (#2842) 2019-07-23 18:47:18 +03:00
.gitignore seperate user_config.h to speed-up compile when modules disabled/enabled 2015-03-06 11:59:04 +08:00
Makefile Lua 5.1 to 5.3 realignement phase 1 2020-06-09 22:26:06 +02:00