nodemcu-firmware/docs/modules
Nathaniel Wesley Filardo af426d0315 Networking rampage and accumulated fixes (#3060)
* espconn: remove unused espconn code, take 1

This is the easiest part of https://github.com/nodemcu/nodemcu-firmware/issues/3004 .
It removes a bunch of functions that were never called in our tree.

* espconn: De-orbit espconn_gethostbyname

Further work on https://github.com/nodemcu/nodemcu-firmware/issues/3004

While here, remove `mqtt`'s charming DNS-retry logic (which is neither
shared with nor duplicated in other modules) and update its :connect()
return value behavior and documentation.

* espconn: remove scary global pktinfo

A write-only global!  How about that.

* net: remove deprecated methods

All the TLS stuff moved over there a long time ago, and
net_createUDPSocket should just do what it says on the tin.

* espconn_secure: remove ESPCONN_SERVER support

We can barely function as a TLS client; being a TLS server seems like a
real stretch.  This code was never called from Lua anyway.

* espconn_secure: more code removal

* espconn_secure: simplify ssl options structure

There is nothing "ssl_packet" about this structure.  Get rid of the
terrifying "pbuffer" pointer.

Squash two structure types together and eliminate an unused field.

* espconn_secure: refactor mbedtls_msg_info_load

Split out espconn_mbedtls_parse, which we can use as part of our effort
towards addressing https://github.com/nodemcu/nodemcu-firmware/issues/3032

* espconn_secure: introduce TLS cert/key callbacks

The new feature part of https://github.com/nodemcu/nodemcu-firmware/issues/3032
Subsequent work will remove the old mechanism.

* tls: add deprecation warnings

* luacheck: net.ifinfo is a thing now

* tls: remove use of espconn->reverse

* mqtt: stop using espconn->reverse

Instead, just place the espconn structure itself at the top of the user
data.  This enlarges the structure somewhat but removes one more layer
of dynamic heap usage and NULL checks.

While here, simplify the code a bit.

* mqtt: remove redundant pointer to connect_info

Everywhere we have the mqtt_state_t we also have the lmqtt_userdata.

* mqtt: doc fixes

* mqtt: note bug

* tls: allow :on(...,nil) to unregister a callback
2020-06-09 22:26:52 +02: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
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 SSL rampage (#2938) 2020-06-09 22:26:06 +02:00
dcc.md Add DCC decoder module (#2905) 2020-06-09 22:26:06 +02:00
dht.md Re-organize documentation 2019-01-13 22:01:57 +01:00
encoder.md trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
enduser-setup.md Save the post data in a file on the filesystem (#2810) 2019-07-08 21:48:16 +02:00
file.md Lua string optimisation in file.c + get/put contents methods (#2717) 2019-04-11 22:17:00 +01:00
gdbstub.md trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00: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 Networking rampage and accumulated fixes (#3060) 2020-06-09 22:26:52 +02:00
net.md Networking rampage and accumulated fixes (#3060) 2020-06-09 22:26:52 +02:00
node.md Fix typos 2020-06-09 22:26:06 +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 Documentation fixes for pipe (#3041) 2020-06-09 22:26:52 +02: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
rc.md Re-organize documentation 2019-01-13 22:01:57 +01:00
rfswitch.md Re-organize documentation 2019-01-13 22:01:57 +01:00
rotary.md trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00: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 trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00: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 Initial version of software UART C module (#2673) 2020-06-09 22:26:06 +02:00
somfy.md trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
spi.md trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
sqlite3.md Update sqlite3.md (#3042) 2020-06-09 22:26:52 +02:00
struct.md Re-organize documentation 2019-01-13 22:01:57 +01: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 Expose CPU CCOUNT register as tmr function (#2906) 2020-06-09 22:26:52 +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 trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
ucg.md trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
websocket.md trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
wifi.md trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00: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 Re-organize documentation 2019-01-13 22:01:57 +01:00
ws2812.md trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
xpt2046.md Re-organize documentation 2019-01-13 22:01:57 +01:00