nodemcu-firmware/docs/en/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
..
adc.md Add small clarification for 'system restart' 2016-05-18 22:27:23 +02:00
adxl345.md Added support for Analog Devices ADXL345 accelerometer (#1252) 2016-06-05 22:59:55 +02:00
am2320.md Add meta-info block to every module doc page 2016-03-06 08:56:28 +01:00
apa102.md Fix apa102 docs (#1470) 2016-08-25 09:28:37 +02:00
bit.md Add meta-info block to every module doc page 2016-03-06 08:56:28 +01:00
bme280.md Fix wrong words 2016-08-11 20:41:33 +02:00
bmp085.md Add meta-info block to every module doc page 2016-03-06 08:56:28 +01:00
cjson.md Add meta-info block to every module doc page 2016-03-06 08:56:28 +01:00
coap.md Fix admonition in CoAP documentation 2016-07-14 21:32:33 +02:00
crypto.md Added crypto.new_hmac() feature. (#1499) 2016-09-16 17:46:39 +02:00
dht.md Set admonition types correctly (subjective) 2016-07-14 22:52:30 +02:00
encoder.md Add meta-info block to every module doc page 2016-03-06 08:56:28 +01:00
enduser-setup.md Eus channelfix (#1583) 2016-11-08 21:58:33 +01:00
file.md Implement object model for files (#1532) 2016-11-08 21:02:51 +01:00
gdbstub.md Add the esp-gdbstub to enable debugging (#1506) 2016-09-21 11:38:12 +10:00
gpio.md Fixes the gpio.serout problem from #1534 (#1535) 2016-10-11 21:51:00 +09:00
hmc5883l.md Fix typo 2016-09-21 20:27:53 +02:00
http.md Make HTTP module follow redirects (#1450) 2016-08-14 00:48:13 +02:00
hx711.md Add meta-info block to every module doc page 2016-03-06 08:56:28 +01:00
i2c.md Add meta-info block to every module doc page 2016-03-06 08:56:28 +01:00
l3g4200d.md Replace 2 datasheet-only links with SparkFun links 2016-06-05 23:42:21 +02:00
mdns.md Fix link syntax 2016-04-03 21:56:51 +02:00
mqtt.md Add SSL/TLS remarks (#1333) 2016-06-01 21:34:02 +02:00
net.md Add SSL/TLS remarks (#1333) 2016-06-01 21:34:02 +02:00
node.md Document node.flashsize(), fixes #1510 (#1511) 2016-10-01 13:44:24 +02:00
ow.md Reduced LUAL_BUFFERSIZE to 256. Should free up some stack (#1530) 2016-10-16 21:18:03 +09:00
pcm.md Set admonition types correctly (subjective) 2016-07-14 22:52:30 +02:00
perf.md Add meta-info block to every module doc page 2016-03-06 08:56:28 +01:00
pwm.md Add meta-info block to every module doc page 2016-03-06 08:56:28 +01:00
rc.md Add meta-info block to every module doc page 2016-03-06 08:56:28 +01:00
rotary.md Fixed the documentation to match the implementation 2016-04-25 21:34:21 -04:00
rtcfifo.md Set admonition types correctly (subjective) 2016-07-14 22:52:30 +02:00
rtcmem.md Add meta-info block to every module doc page 2016-03-06 08:56:28 +01:00
rtctime.md Fix list format in rtctime docs 2016-08-25 22:06:54 +02:00
sigma-delta.md Fix tiny issue in sigma-delta docs 2016-04-25 14:54:36 +02:00
sntp.md Add note about calling sntp.sync periodically 2016-07-25 14:28:27 +02:00
somfy.md Somfy/TELIS driver (#1521) 2016-10-14 07:49:58 +09:00
spi.md Enable spi clock_div < 4. (#1283) 2016-06-15 21:01:52 +02:00
struct.md Add meta-info block to every module doc page 2016-03-06 08:56:28 +01:00
switec.md Set admonition types correctly (subjective) 2016-07-14 22:52:30 +02:00
tm1829.md Added support for tm1829 baed led controllers (#1330) 2016-06-03 23:47:36 +02:00
tmr.md Add support for dynamic timers, deprecating the static ones (#1424) 2016-08-02 22:35:53 +02:00
tsl2561.md Add meta-info block to every module doc page 2016-03-06 08:56:28 +01:00
u8g.md Add ssd1306_128x32 for U8G (#1571) 2016-10-30 00:19:04 +03:00
uart.md Small syntax fix in UART documentation 2016-05-16 22:25:07 +02:00
ucg.md Typo in link to GraphicsTest.lua (#1278) 2016-05-01 09:42:20 -04:00
websocket.md Implement initial version for websocket module (#1433) 2016-08-18 13:59:44 +02:00
wifi.md Update to the wifi module (#1497) 2016-11-06 20:51:01 +01:00
ws2801.md Add meta-info block to every module doc page 2016-03-06 08:56:28 +01:00
ws2812.md Add support to mix ws2812.buffer objects. (#1575) 2016-11-05 13:53:42 +01:00