nodemcu-firmware/app/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
..
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 Networking rampage and accumulated fixes (#3060) 2020-06-09 22:26:52 +02:00
net.c Networking rampage and accumulated fixes (#3060) 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 Networking rampage and accumulated fixes (#3060) 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