262 Commits

Author SHA1 Message Date
Marcos Kirsch
bf7f918d28 Added comments, chunk sized cannot be presently increased. 2016-02-21 22:12:09 -06:00
Marcos Kirsch
f9d94d9aa2 Fixed typo in HTML and reduced file size of image. 2016-02-21 22:11:03 -06:00
Marcos Kirsch
8e3fb81062 Remove TODO for BufferedConnection, decided to go keep the buffering after getting feedback 2016-02-21 22:10:27 -06:00
Marcos
9bd12123b0 Merge pull request #54 from devyte/master
httpserver-connection: implement fragmentation logic
2016-02-21 20:32:18 -06:00
Marcos
c37560ad5f Merge pull request #55 from marcelstoer/patch-1
Fix NodeMCU docs link
2016-02-21 15:31:00 -06:00
Marcel Stör
1ed7243056 Fix NodeMCU docs link 2016-02-21 21:42:24 +01:00
Develo
3dd98667dd httpserver-connection: implement fragmentation logic
Implement fragmentation logic in send() method of bufferedConnection:send(). Now, payloads are accumulated up to a threshold amount of bytes, and then flushed. If a payload would make the total accumulated larger, it gets carved to complete threshold and flushed. Any remainder get successively flushed in threshold-sized chunks, until the remainder is less than threshold, which then gets again buffered.
2016-02-21 15:48:49 -03:00
Marcos Kirsch
1b4a2c9d9a Concatenate .. less in lua since BufferedConnection will do it for us anyway: 2016-02-21 12:23:06 -06:00
Marcos Kirsch
11ae46c96b Improved print to show what the method is for a specific URI 2016-02-21 12:22:16 -06:00
Marcos Kirsch
86b00f922c Added example that loads several images as a stress test. This does not currently work. 2016-02-21 11:32:35 -06:00
Marcos Kirsch
2ed2e6f636 Add TODO.md file to keep track of things that aren't necessarily issues 2016-02-16 23:02:23 -06:00
Marcos Kirsch
a75f74efb5 Improve documentation 2016-02-16 23:00:37 -06:00
Marcos Kirsch
e7db3dce7d Moved BufferedConnection into its own file. 2016-02-16 22:45:14 -06:00
Marcos Kirsch
3357919f44 typo 2016-02-16 09:05:38 -06:00
Marcos Kirsch
e255d7f6b1 Add Terry Ellison quote 2016-02-16 09:03:13 -06:00
Marcos Kirsch
59e0218a72 Fix https://github.com/marcoskirsch/nodemcu-httpserver/issues/36 2016-02-15 23:19:29 -06:00
Marcos Kirsch
4776545a41 added Contributing section 2016-02-15 23:01:59 -06:00
Marcos Kirsch
d71b079932 clean up, but example does not work at this time 2016-02-15 22:54:19 -06:00
Marcos Kirsch
2f2fb26782 Several fixes and code cleanup. Gzipped files now work. Indentation cleaned up, Other small fixes: 2016-02-15 22:52:30 -06:00
Marcos Kirsch
11dde7075b Added a second link to zipped file, with gz extension 2016-02-15 22:48:53 -06:00
Marcos Kirsch
5ccc69dc73 Updated examples to remove yields, pass req param. Integration woes. 2016-02-15 22:33:30 -06:00
Marcos Kirsch
d31b2d2c89 No need to yield. Conditionally show form. Updated title. 2016-02-15 22:31:48 -06:00
Marcos Kirsch
066b602444 Updated README with new instructions 2016-02-15 22:31:08 -06:00
Marcos Kirsch
fbc6506faa Merged with main repository 2016-02-15 20:54:11 -06:00
Marcos Kirsch
64f07cb38d Change NodeMCU firmware link to point to github project. 2016-02-15 14:21:16 -06:00
Marcos Kirsch
4d4442318d Fix example server-side scripts to work on new nodemcu-firmware. Specifically, call coroutine.yield() after each connection:send() except the last one, since we can no longer queue sends. 2016-02-15 14:20:28 -06:00
Marcos Kirsch
4ff7b2b78d Trivial placeholder print statement, useful for debugging. 2016-02-15 13:52:27 -06:00
Marcos Kirsch
1b14a516aa Fix bugs for newer nodemcu-firmware: new firmware does not allow queuing multiple connection:send() operations. These changes ensure we yield after every send except the last one. 2016-02-15 13:52:01 -06:00
Marcos Kirsch
37e58389c6 Trivial improvement to print message 2016-02-15 13:46:50 -06:00
Marcos Kirsch
0e4b515514 Default to join an existing WiFi network, more common at least for my own testing 2016-02-15 13:12:19 -06:00
Marcos Kirsch
33b94ec5d5 Modified Makefile so that the nodemcu-uploader script no longer needs to be executable 2016-02-15 13:08:59 -06:00
Marcos
c218c4f5a8 Merge pull request #50 from TriAnMan/fix-memory-leak
Fix a memory leak when the connection is dropped by the client side
2016-02-15 09:10:44 -06:00
Marcos
dc816cc258 Merge pull request #48 from lluki/master
matching of mime type in http request header that contain a charset a…
2016-02-15 09:09:53 -06:00
Anton Andersen
1ddd47eaf9 Fix a memory leak when the connection is dropped by the client side 2016-02-15 12:46:54 +03:00
Lukas Humbel
02832a1a45 matching of mime type in http request header that contain a charset appendix 2015-12-19 13:43:55 +01:00
Marcos
8715123904 Merge pull request #45 from IntelliDust/master
Added handling of watchdog for serving bigger files
2015-12-05 11:44:32 -06:00
IntelliDust
1f43c9f5e5 Added Cache-Control header for gzipped content. This will prevent for
getting css.gz js.gz and so by browser from server.
2015-12-03 12:51:42 +01:00
IntelliDust
1b8a1f7750 Added handling of watchdog for serving bigger files 2015-12-03 12:48:27 +01:00
Marcos
3eecd76908 Merge pull request #43 from pjsg/master
Fix the problem with the more modern SDK only allowing one outstanding connection:send
2015-11-29 10:16:11 -06:00
Philip Gladstone
f852959fa5 Handle the null write case 2015-11-28 21:00:34 -05:00
Philip Gladstone
9fee6ee8e8 Removed another unused file 2015-11-28 16:36:53 -05:00
Philip Gladstone
a54159b39f Remove unused file 2015-11-28 12:23:22 -05:00
Philip Gladstone
8a195cb798 Reduce memory requirements a bit and fix weird issue in node_info.lua
example
2015-11-28 12:22:20 -05:00
Philip Gladstone
b4a2d02431 Fix the problem with the more modern SDK only allowing one outstanding
connection:send at a time. Long and short of it, don't use coroutine.yield
any more when serving content.
2015-11-22 13:39:03 -05:00
Marcos
067ffdf3e5 Merge pull request #39 from dimsumlabs/master
Fixed syntax error on line 92
2015-10-03 21:54:34 -05:00
Marcos
cf0d777632 Merge pull request #38 from hazarkarabay/master
File extension parsing, gzip detection and init.lua fix
2015-10-03 21:53:55 -05:00
Lionello Lunesu
72b21a61ae Fixed syntax error on line 92 2015-10-04 00:02:40 +08:00
Hazar Karabay
0ddaa52527 init.lua typo
Deleting stray character at line 92.
2015-09-16 22:10:49 +03:00
Hazar Karabay
b7f78481a2 File extension parsing fix
If a filename contains dots, extension was parsed as everything after
the first dot.
File extension must be what it is after the last dot.

Also includes a rewrited workaround for mimetypes if the requested file
gzip compressed.
2015-09-16 22:10:21 +03:00
Marcos
792c0814a5 Merge pull request #31 from pospanet/master
Full WiFi configuration done by code based on WiFi mode
2015-09-04 09:52:03 -05:00