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