nodemcu-firmware/app/modules
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
..
enduser_setup Update enduser_setup.html.gz.def.h (#2827) 2019-07-11 12:57:49 +02:00
.gitignore Adds support for verifying the certificate offered by an SSL server. 2016-03-09 21:51:23 -05:00
Makefile Dev make cleanup (#2842) 2019-07-23 18:47:18 +03:00
adc.c Evict c_types.h, tidy up a other c_prefixes. (#2841) 2019-07-23 14:22:38 +10:00
ads1115.c Major cleanup - c_whatever is finally history. (#2838) 2019-07-22 00:58:21 +03:00
adxl345.c Major cleanup - c_whatever is finally history. (#2838) 2019-07-22 00:58:21 +03:00
am2320.c Updated ROTables 1st tranch (#2742) 2019-05-08 14:08:20 +03:00
apa102.c Major cleanup - c_whatever is finally history. (#2838) 2019-07-22 00:58:21 +03:00
bit.c Major cleanup - c_whatever is finally history. (#2838) 2019-07-22 00:58:21 +03:00
bloom.c Evict c_types.h, tidy up a other c_prefixes. (#2841) 2019-07-23 14:22:38 +10:00
bme280.c Rebased against current dev 2020-06-09 22:26:06 +02:00
bme680.c Update sensor driver for BME680 to 3.5.9 (#2969) 2020-06-09 22:26:06 +02:00
bme680_defs.h Update sensor driver for BME680 to 3.5.9 (#2969) 2020-06-09 22:26:06 +02:00
bmp085.c Rebased against current dev 2020-06-09 22:26:06 +02:00
coap.c Dev make cleanup (#2842) 2019-07-23 18:47:18 +03:00
color_utils.c Major cleanup - c_whatever is finally history. (#2838) 2019-07-22 00:58:21 +03:00
color_utils.h Major cleanup - c_whatever is finally history. (#2838) 2019-07-22 00:58:21 +03:00
cron.c Evict c_types.h, tidy up a other c_prefixes. (#2841) 2019-07-23 14:22:38 +10:00
crypto.c Deprecate crypto.to{Hex,Base64} (#2929) 2020-06-09 22:26:06 +02:00
dcc.c Add DCC decoder module (#2905) 2020-06-09 22:26:06 +02:00
dht.c Dev make cleanup (#2842) 2019-07-23 18:47:18 +03:00
encoder.c Major cleanup - c_whatever is finally history. (#2838) 2019-07-22 00:58:21 +03:00
enduser_setup.c Fix enduser_setup default POST request (#2852) 2019-08-01 21:31:18 +02:00
file.c Rebased against current dev 2020-06-09 22:26:06 +02:00
gdbstub.c Evict c_types.h, tidy up a other c_prefixes. (#2841) 2019-07-23 14:22:38 +10:00
gpio.c Lua 5.1 to 5.3 realignement phase 1 2020-06-09 22:26:06 +02:00
gpio_pulse.c Lua 5.1 to 5.3 realignement phase 1 2020-06-09 22:26:06 +02:00
hdc1080.c Rebased against current dev 2020-06-09 22:26:06 +02:00
hmc5883l.c Major cleanup - c_whatever is finally history. (#2838) 2019-07-22 00:58:21 +03:00
http.c Rebased against current dev, tweaks for clean compile 2020-06-09 22:26:06 +02:00
hx711.c Streaming support for hx711 (#2915) 2020-06-09 22:26:06 +02:00
i2c.c Updated ROTables 1st tranch (#2742) 2019-05-08 14:08:20 +03:00
l3g4200d.c Major cleanup - c_whatever is finally history. (#2838) 2019-07-22 00:58:21 +03:00
mcp4725.c Updated ROTables 1st tranch (#2742) 2019-05-08 14:08:20 +03:00
mdns.c Evict c_types.h, tidy up a other c_prefixes. (#2841) 2019-07-23 14:22:38 +10:00
mqtt.c WIP: MQTT fixes (#2986) 2020-06-09 22:26:52 +02:00
net.c net: rename net.if.info to net.ifinfo (#3033) 2020-06-09 22:26:52 +02:00
node.c Clarify LFS build info is its size (#3022) 2020-06-09 22:26:52 +02:00
ow.c Updated ROTables 1st tranch (#2742) 2019-05-08 14:08:20 +03:00
pcm.c Dev make cleanup (#2842) 2019-07-23 18:47:18 +03:00
perf.c Major cleanup - c_whatever is finally history. (#2838) 2019-07-22 00:58:21 +03:00
pipe.c Lua 5.1 to 5.3 realignement phase 1 2020-06-09 22:26:06 +02:00
pwm.c Evict c_types.h, tidy up a other c_prefixes. (#2841) 2019-07-23 14:22:38 +10:00
pwm2.c Evict c_types.h, tidy up a other c_prefixes. (#2841) 2019-07-23 14:22:38 +10:00
rc.c Rebased against current dev 2020-06-09 22:26:06 +02:00
rfswitch.c Updated ROTables 1st tranch (#2742) 2019-05-08 14:08:20 +03:00
rotary.c Rebased against current dev 2020-06-09 22:26:06 +02:00
rtcfifo.c Major cleanup - c_whatever is finally history. (#2838) 2019-07-22 00:58:21 +03:00
rtcmem.c Updated ROTables 1st tranch (#2742) 2019-05-08 14:08:20 +03:00
rtctime.c Updated ROTables 1st tranch (#2742) 2019-05-08 14:08:20 +03:00
si7021.c Updated ROTables 1st tranch (#2742) 2019-05-08 14:08:20 +03:00
sigma_delta.c Updated ROTables 1st tranch (#2742) 2019-05-08 14:08:20 +03:00
sjson.c Dev make cleanup (#2842) 2019-07-23 18:47:18 +03:00
sntp.c Simplify and tidy SNTP (#2700) 2019-07-27 14:20:26 +02:00
softuart.c Fix timing of softuart module RX (#3029) 2020-06-09 22:26:52 +02:00
somfy.c Lua 5.1 to 5.3 realignement phase 1 2020-06-09 22:26:06 +02:00
spi.c Updated ROTables 1st tranch (#2742) 2019-05-08 14:08:20 +03:00
sqlite3.c Dev make cleanup (#2842) 2019-07-23 18:47:18 +03:00
struct.c Updated ROTables 1st tranch (#2742) 2019-05-08 14:08:20 +03:00
switec.c Evict c_types.h, tidy up a other c_prefixes. (#2841) 2019-07-23 14:22:38 +10:00
tcs34725.c Rebased against current dev 2020-06-09 22:26:06 +02:00
tls.c Document tls.cert.auth (#3010) 2020-06-09 22:26:52 +02:00
tm1829.c Major cleanup - c_whatever is finally history. (#2838) 2019-07-22 00:58:21 +03:00
tmr.c Expose CPU CCOUNT register as tmr function (#2906) 2020-06-09 22:26:52 +02:00
tsl2561.c Updated ROTables 1st tranch (#2742) 2019-05-08 14:08:20 +03:00
u8g2.c Fix ROTable call 2019-06-22 12:47:14 +02:00
uart.c Rebased against current dev 2020-06-09 22:26:06 +02:00
ucg.c Updated ROTables 1st tranch (#2742) 2019-05-08 14:08:20 +03:00
websocket.c Dev make cleanup (#2842) 2019-07-23 18:47:18 +03:00
wifi.c Fix invalid smartconfig include 2020-06-09 22:26:06 +02:00
wifi_common.c Major cleanup - c_whatever is finally history. (#2838) 2019-07-22 00:58:21 +03:00
wifi_common.h Major cleanup - c_whatever is finally history. (#2838) 2019-07-22 00:58:21 +03:00
wifi_eventmon.c Dev make cleanup (#2842) 2019-07-23 18:47:18 +03:00
wifi_monitor.c Evict c_types.h, tidy up a other c_prefixes. (#2841) 2019-07-23 14:22:38 +10:00
wps.c Rebased against current dev 2020-06-09 22:26:06 +02:00
ws2801.c Major cleanup - c_whatever is finally history. (#2838) 2019-07-22 00:58:21 +03:00
ws2812.c Fixes for `ws2812` and `ws2812_effects` (#2953) 2020-06-09 22:26:06 +02:00
ws2812.h Fixes for `ws2812` and `ws2812_effects` (#2953) 2020-06-09 22:26:06 +02:00
ws2812_effects.c Fixes for `ws2812` and `ws2812_effects` (#2953) 2020-06-09 22:26:06 +02:00
xpt2046.c Updated ROTables 1st tranch (#2742) 2019-05-08 14:08:20 +03:00