nodemcu-firmware/app/modules
Jason Follas 058777ea60 Eus channelfix (#1583)
Squashed commits included:

Bug fixes and final implementation
- Added Content-Length: 0 to all headers
- Endpoint name checks not using trailing space so cache-busting techniques can be used (i.e., append a nonce to the URL)
- Track when connecting so APList scan doesn't take place during (which changes the channel)
- More debugging output added to assist in tracking down some issues

Added /status.json endpoint for phone apps/XHR to get JSON response

Station Status caching for wifi channel workaround + AJAX/CORS
- During checkstation poll, cache the last station status
- Shut down the station if status = 2,3,4 and channel is different than SoftAP
- Add Access-Control-Allow-Origin: * to endpoint responses used by a service
- Add a /setwifi GET endpoint for phone apps/XHR to use (same parameters as /update endpoint). Returns a JSON response containing chip id and status code.
- Add handler for OPTIONS verb (needed for CORS support)

Wi-Fi Channel Issue Workaround
- Do a site survey upon startup, set SoftAP channel to the strongest rssi's channel
- Compare successful station connect channel to SoftAP's. If different, then defer the Lua success callback to the end. Shut down Station and start the SoftAP back up with original channel.
- After the 10 second shutdown timer fires, check to see if success callback was already called. If not, then call it while starting the Station back up.

HTTP Response and DNS enhancements
- If DNS's UDP buffer fills up, keep going as non-fatal. It's UDP and not guaranteed anyways. I've seen this occur when connecting a PC to the SoftAP and every open program tries to phone home at the same time, overwhelming the EUS DNS server.
- Support for detecting/handling pre-gzipped `enduser_setup.html` (and `http_html_backup`) payload. Nice for keeping the size of the `state->http_payload_data` as small as possible (also makes minimization not as critical)
- Corrected misuse of HTTP 401 response status (changed one occurrence to 400/Bad Request, and changed another to 405/Method Not Allowed)

* Normalized formatting (tabs-to-spaces)
* Added documentation
* Corrected misuse of strlen for binary (gzip) data.
* Added NULL check after malloc
2016-11-08 21:58:33 +01:00
..
eus Eus channelfix (#1583) 2016-11-08 21:58:33 +01:00
.gitignore Adds support for verifying the certificate offered by an SSL server. 2016-03-09 21:51:23 -05:00
Makefile Add FatFs and SD card support (#1397) 2016-09-05 20:17:13 +02:00
adc.c Rework ADC mode setting approach (#1285) 2016-05-18 21:45:15 +02:00
adxl345.c Added support for Analog Devices ADXL345 accelerometer (#1252) 2016-06-05 22:59:55 +02:00
am2320.c Add i2c based module for am2320 humidity sensor 2016-02-14 15:12:42 +01:00
apa102.c Cleaned up APA102 module registration. 2016-01-26 17:14:19 -05:00
bit.c Reworked module registration, removed modules.h 2015-12-16 16:09:16 +11:00
bme280.c Update modules to be Lua coroutine compatible (#1423) 2016-08-02 22:33:05 +02:00
bmp085.c BMP085: bmp085.init() should return 0 2016-01-14 22:23:03 +01:00
cjson.c Update modules to be Lua coroutine compatible (#1423) 2016-08-02 22:33:05 +02:00
coap.c Update modules to be Lua coroutine compatible (#1423) 2016-08-02 22:33:05 +02:00
crypto.c Added crypto.new_hmac() feature. (#1499) 2016-09-16 17:46:39 +02:00
dht.c Reworked module registration, removed modules.h 2015-12-16 16:09:16 +11:00
encoder.c Update encoder files after #925 & #1072 review comments 2016-02-26 00:44:33 +00:00
enduser_setup.c Eus channelfix (#1583) 2016-11-08 21:58:33 +01:00
file.c Implement object model for files (#1532) 2016-11-08 21:02:51 +01:00
gdbstub.c Add the esp-gdbstub to enable debugging (#1506) 2016-09-21 11:38:12 +10:00
gpio.c Fixes the gpio.serout problem from #1534 (#1535) 2016-10-11 21:51:00 +09:00
hmc5883l.c Added support for Honeywell HMC5883L digital compass (#1253) 2016-06-05 22:59:39 +02:00
http.c Version of printf that doesn't suffer from buffer overflows (#1564) 2016-10-27 09:38:47 +03:00
hx711.c Reworked module registration, removed modules.h 2015-12-16 16:09:16 +11:00
i2c.c Reworked module registration, removed modules.h 2015-12-16 16:09:16 +11:00
l3g4200d.c Added support for STM L3G4200D digital gyroscope (#1251) 2016-06-05 23:00:37 +02:00
linit.c Fix break in luac.cross build and add some documentation 2016-03-03 02:03:23 +00:00
mdns.c Take 2: Add regular sends to mdns. Check for (some) buffer overflows. Make it handle unicast 2016-04-03 14:10:52 -04:00
mqtt.c Make the MQTT PING functionality work better. (#1557) 2016-11-08 21:00:17 +01:00
net.c Set espconn's secure buffer size once at initialization (#1466) 2016-09-04 22:45:46 +02:00
node.c Add FatFs and SD card support (#1397) 2016-09-05 20:17:13 +02:00
ow.c Reduced LUAL_BUFFERSIZE to 256. Should free up some stack (#1530) 2016-10-16 21:18:03 +09:00
pcm.c Add pcm module. (#1255) 2016-06-05 23:21:36 +02:00
perf.c Performance monitoring tool. 2016-02-22 08:50:07 -05:00
pwm.c Omit all the PWM code if the PWM module is not included 2016-03-01 21:55:21 -05:00
rc.c Enable -std=gnu11 for modules dir. 2016-01-20 19:40:47 +11:00
rotary.c Squashed commit of the following: 2016-02-29 08:21:12 -05:00
rtcfifo.c Reworked module registration, removed modules.h 2015-12-16 16:09:16 +11:00
rtcmem.c Reworked module registration, removed modules.h 2015-12-16 16:09:16 +11:00
rtctime.c Add rtctime.epoch2cal() (#1386) 2016-07-19 22:01:26 +02:00
sigma_delta.c Add sigma_delta module. 2016-02-18 21:35:58 +01:00
sntp.c Version of printf that doesn't suffer from buffer overflows (#1564) 2016-10-27 09:38:47 +03:00
somfy.c Somfy/TELIS driver (#1521) 2016-10-14 07:49:58 +09:00
spi.c Enable spi clock_div < 4. (#1283) 2016-06-15 21:01:52 +02:00
struct.c Make struct.unpack wrapped in setlist actually work (#1486) 2016-09-05 11:16:27 +10:00
switec.c Add support for driving instrument gauge stepper motors (#1355) 2016-06-26 14:19:06 +02:00
tm1829.c Added support for tm1829 baed led controllers (#1330) 2016-06-03 23:47:36 +02:00
tmr.c Add support for dynamic timers, deprecating the static ones (#1424) 2016-08-02 22:35:53 +02:00
tsl2561.c Reworked module registration, removed modules.h 2015-12-16 16:09:16 +11:00
u8g.c Update u8glib to v1.19.1 and add setContrast() (#1385) 2016-08-02 22:29:34 +02:00
uart.c Update modules to be Lua coroutine compatible (#1423) 2016-08-02 22:33:05 +02:00
ucg.c Add caching for multi-byte transfers (#1247) 2016-06-04 00:18:19 +02:00
websocket.c Implement initial version for websocket module (#1433) 2016-08-18 13:59:44 +02:00
wifi.c Update to the wifi module (#1497) 2016-11-06 20:51:01 +01:00
wifi_common.c Modified wifi module 2016-03-31 19:01:41 -07:00
wifi_common.h Update to the wifi module (#1497) 2016-11-06 20:51:01 +01:00
wifi_eventmon.c Modified wifi module 2016-03-31 19:01:41 -07:00
ws2801.c Enable -std=gnu11 for modules dir. 2016-01-20 19:40:47 +11:00
ws2812.c Add support to mix ws2812.buffer objects. (#1575) 2016-11-05 13:53:42 +01:00