nodemcu-firmware/docs/modules
Nathaniel Wesley Filardo c695a451ee
First round of MQTT fixes (#3360)
* mqtt: remove concept of connection timeout

Just rely on the network stack to tell us when things have gone south.

* mqtt: remove write-only mqtt_state.port field

* mqtt: drop useless conditional

* mqtt: decouple message sent flag from timer

* mqtt: reconnect callback does not need to hang up

The network stack has certainly done that for us at this point.
Similarly, since we're about to call mqtt_socket_disconnected, don't
bother unregistering the timer here, either.

* mqtt: don't tick once per second

Set the timer for the duration of the wait and cancel it on the other side.

* mqtt: defer message queue destruction to _disconnect

We're going to want to publish a disconnect message for real, so doing
this in _close does no one any favors

* mqtt: miscellaneous cleanups

No functional change intended

* mqtt: close() should send disconnect message for real

This means waiting for _sent() to fire again before telling the network
stack to disconnect.

* mqtt: tidy connect and dns

- Push the self-ref to after all allocations and error returns

- Don't try to extract IPv4 from the domain string ourselves, let the
  resolver, since it can

- Don't try to connect to localhost.  That can't possibly work.

* mqtt: common up some callback invocations

* mqtt: don't retransmit messages on timeout

There's no point in retransmitting messages on timeout; the network
stack will be trying to do it for us anyway.

* mqtt: remove unnecessary NULL udata checks

* mqtt: hold strings in Lua, not C

Eliminates a host of C-side allocations.

While here, move the rest of the mqtt_connect_info structure out to its
own thing, and pack some flags using a bitfield.

* mqtt: mqtt_socket_on use lua_checkoption

* mqtt: slightly augment debug messages

These changes have made some debugging ever so slightly easier.
2021-01-05 12:07:09 +01:00
..
adc.md Re-organize documentation 2019-01-13 22:01:57 +01:00
ads1115.md Fix issue #2753 and fix documentation example (#2776) 2019-06-01 18:05:19 +02:00
adxl345.md Re-organize documentation 2019-01-13 22:01:57 +01:00
am2320.md Re-organize documentation 2019-01-13 22:01:57 +01:00
apa102.md trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
bit.md Re-organize documentation 2019-01-13 22:01:57 +01:00
bloom.md trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
bme280.md trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
bme280_math.md bme280 driver in Lua+C 2020-10-05 20:41:36 +01:00
bme680.md trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
bmp085.md Re-organize documentation 2019-01-13 22:01:57 +01:00
cjson.md Re-organize documentation 2019-01-13 22:01:57 +01:00
coap.md trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
color-utils.md trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
cron.md trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
crypto.md crypto: remove toHex and toBase64 (#3300) 2020-09-28 20:42:16 +02:00
dcc.md Add DCC decoder module (#2905) 2020-06-09 22:26:06 +02:00
dht.md Fix DHT module (#3334) 2020-12-16 23:20:09 +01:00
encoder.md Fix method name encoder.fromBase64 in example code (#3246) 2020-08-22 10:30:29 +02:00
enduser-setup.md Improve the enduser setup experience by triggering captive portal detection. (#3282) 2020-09-18 23:47:52 +02:00
file.md Doc fixes (#3333) 2020-11-25 12:53:46 +01:00
gdbstub.md Squashed updates do get Lua51 and Lua53 working (#3075) 2020-06-09 22:26:52 +02:00
gpio.md trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
hdc1080.md Re-organize documentation 2019-01-13 22:01:57 +01:00
hmc5883l.md Re-organize documentation 2019-01-13 22:01:57 +01:00
http.md Be more assertive in the TLS documentation (#2874) 2019-08-04 12:19:32 +02:00
hx711.md Streaming support for hx711 (#2915) 2020-06-09 22:26:06 +02:00
i2c.md I2C sw driver with support of multiple buses, Slow, Fast, FastPlus, and user-defined speed selection (#2465) 2019-04-05 06:56:11 +02:00
l3g4200d.md Re-organize documentation 2019-01-13 22:01:57 +01:00
mcp4725.md trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
mdns.md trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
mqtt.md First round of MQTT fixes (#3360) 2021-01-05 12:07:09 +01:00
net.md Doc fixes (#3333) 2020-11-25 12:53:46 +01:00
node.md Improved startup performance and measurement tools. (#3171) 2020-10-18 20:46:47 +02:00
ow.md Add CRC check (#2992) 2020-06-09 22:26:52 +02:00
pcm.md Re-organize documentation 2019-01-13 22:01:57 +01:00
perf.md trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
pipe.md Add pipeutils example (#3354) 2020-12-29 08:54:54 +01:00
pwm.md Re-organize documentation 2019-01-13 22:01:57 +01:00
pwm2.md Add pwm2 module (#2747) 2019-05-25 22:08:13 +02:00
rfswitch.md Re-organize documentation 2019-01-13 22:01:57 +01:00
rotary.md First phase of number to integer conversion (#3221) 2020-08-29 17:48:24 +01:00
rtcfifo.md trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
rtcmem.md Re-organize documentation 2019-01-13 22:01:57 +01:00
rtctime.md Add support to set the clock rate and have sntp use it. (#3236) 2020-08-08 13:32:14 +02:00
si7021.md Re-organize documentation 2019-01-13 22:01:57 +01:00
sigma-delta.md Re-organize documentation 2019-01-13 22:01:57 +01:00
sjson.md trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
sntp.md trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
softuart.md SoftUART module fixes and code simplification (#3104) 2020-09-04 17:02:33 +02:00
somfy.md Add Somfy receiver (#3320) 2020-12-28 00:04:32 +01:00
spi.md trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
struct.md struct module minor documentation fix (#3306) 2020-10-04 17:26:42 -04:00
switec.md trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
tcs34725.md trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
tls.md Networking rampage and accumulated fixes (#3060) 2020-06-09 22:26:52 +02:00
tm1829.md Re-organize documentation 2019-01-13 22:01:57 +01:00
tmr.md Fixes broken `tmr.alarm` (#3263) 2020-09-05 14:16:57 +02:00
tsl2561.md trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
u8g2.md Update u8g2 to v2.25.10 (#2735) 2019-04-28 15:45:04 +02:00
uart.md uart: expose fifo depth counters (#3177) 2020-09-18 23:46:32 +02:00
ucg.md Doc fixes (#3333) 2020-11-25 12:53:46 +01:00
websocket.md trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
wiegand.md add wiegand module (#3203) 2020-10-19 01:05:31 +01:00
wifi.md Doc fixes (#3333) 2020-11-25 12:53:46 +01:00
wifi_monitor.md trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
wps.md trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
ws2801.md Re-organize documentation 2019-01-13 22:01:57 +01:00
ws2812-effects.md ws2812_effects deprecation warning 2020-06-09 22:26:52 +02:00
ws2812.md Doc fixes (#3333) 2020-11-25 12:53:46 +01:00
xpt2046.md Re-organize documentation 2019-01-13 22:01:57 +01:00