Marcos Kirsch
84f7a06aa1
No longer crashes when request is HTTP 1.0
2015-03-22 11:45:39 -05:00
Marcos Kirsch
a43fc20230
Remove debug traces, handle long filenames
2015-03-15 22:12:51 -05:00
Marcos Kirsch
4f6cd02b1f
Fixes serving multiple connections simultaneously by reopening and scanning the file
2015-03-15 22:12:00 -05:00
Marcos Kirsch
be08c78e8b
Remove image, was just for testing purposes
2015-03-15 22:10:11 -05:00
Marcos Kirsch
4a2dafccc8
Reorder, add image, add garage example
2015-03-15 22:09:18 -05:00
Marcos Kirsch
d5396202ea
Serve large files example, now with smaller large files
2015-03-15 22:07:35 -05:00
Marcos Kirsch
b10a137712
Finally works when serving multiple files simultaneously. Still need to clan up
2015-03-15 13:16:59 -05:00
Marcos Kirsch
d5fcc71c23
Move function definition to inside the socket listen argument list. This is harder to follow, but allows the coroutine to be unique since it is now part of the closure. Multiple files can be served simultaneously this way.
2015-03-10 22:15:52 -05:00
Marcos Kirsch
65538efc1b
Modified HTML to call lua script via javascript. Also embedded an image just for stress testing the server
2015-03-10 22:14:10 -05:00
Marcos Kirsch
e571f19d81
Increase chunk size, improved traces for debugging purposes.
2015-03-10 22:12:49 -05:00
Marcos Kirsch
2ae0a573d9
Functional garage_door_opener example.
2015-03-08 20:10:37 -05:00
Marcos Kirsch
b88e0e382b
Add an example binary file (in this case a GIF). It's also bigger than the buffer on the NodeMCU so it stresses sending in chunks.
2015-03-08 19:49:27 -05:00
Marcos Kirsch
e31c35a3f3
Change to use nodemcu-uploader.py rather than luatool.py. It's faster with multiple files, but more importantly, it allows uploading binary files like images. Note that you will need a farly recent version of nodemcu-uploader.
2015-03-08 19:48:23 -05:00
Marcos Kirsch
1284b6363e
Add compilation of server files.
2015-03-08 19:45:43 -05:00
Marcos Kirsch
c805873395
Formatting change, but will delete
2015-03-04 12:33:18 -06:00
Marcos Kirsch
9c35443ea4
Updated to match code
2015-03-04 12:31:46 -06:00
Marcos Kirsch
50b1c09570
Updated to reflect latest status of the code
2015-02-28 17:00:03 -06:00
Marcos Kirsch
c1ca93a78c
Removed parameter that is no longer needed
2015-02-28 16:57:30 -06:00
Marcos Kirsch
f43025f237
init shows new way of starting server
2015-02-28 16:40:36 -06:00
Marcos Kirsch
5ebfa6ac8b
Updated to reflect server changes
2015-02-28 16:40:06 -06:00
Marcos Kirsch
5b472f3554
Add yield so that looong listings don't overflow mcu's buffer
2015-02-28 16:39:40 -06:00
Marcos Kirsch
77920f4a94
Big refactoring: server now uses a separate thread that yields and then resumes on 'sent'. This allows us to serve large files. Moved serving of error pages and serving of static files into separate scripts httpserver-error.lua and httpserver-static.lua
2015-02-28 16:39:06 -06:00
Marcos Kirsch
f4875cbd86
Fix indentation
2015-02-28 16:34:24 -06:00
Marcos Kirsch
dfdae5dacd
Updates to README, added notes on memory usage, etc.
2015-02-22 16:44:44 -06:00
Marcos Kirsch
7c2d597bdc
Delete file that is not part of the server
2015-02-22 16:29:08 -06:00
Marcos
34d2e1ef55
Delete test.lua
...
No need to track this in the published repository, it's for local tests.
2015-02-22 16:27:30 -06:00
Marcos Kirsch
d73bd73211
Added back improved version of validateMethod
...
Reduced MIME types list to save memory
Fixed argument parsing! this is biggie
General cleanup and bugfixes
2015-02-22 16:25:31 -06:00
Marcos Kirsch
796d17b205
commit some changes but I want to stop tracking, so that's next
2015-02-22 16:21:03 -06:00
Marcos Kirsch
9cea7cd370
Modify so all file types are uploaded, not just HTML files
2015-02-22 16:20:36 -06:00
Marcos Kirsch
9459bb2645
Add code that shows how to start the server
2015-02-22 16:09:06 -06:00
Marcos Kirsch
068b45023e
Delete, this is now part of node-info.lua
2015-02-22 16:06:35 -06:00
Marcos Kirsch
316af66d3c
Improve demo files
2015-02-22 16:06:06 -06:00
Marcos Kirsch
5fe2dfcf9d
Add script that shows how arguments are handled by server
2015-02-22 16:05:35 -06:00
Marcos Kirsch
5c1404dcea
Erase, not used
2015-02-22 16:05:10 -06:00
Marcos Kirsch
6ba7c02381
Attempt at improving the printing, but will delete anyway
2015-02-22 16:04:08 -06:00
Marcos
524730d4e5
Merge pull request #1 from samdieck/master
...
Makefile for uploading server files using luatool.py
2015-02-17 22:02:36 -06:00
Marcos Kirsch
ac387a6c2c
add open issue
2015-02-15 16:54:05 -06:00
Marcos Kirsch
62760f1f80
add feature
2015-02-15 16:53:08 -06:00
Marcos Kirsch
c0d6218397
Support for Lua scripts
2015-02-15 16:51:21 -06:00
Marcos Kirsch
00475af342
Add links to examples
2015-02-15 16:48:54 -06:00
Marcos Kirsch
3f5caa7afb
Clean up
2015-02-15 16:48:30 -06:00
Marcos Kirsch
685102f478
Updates
2015-02-15 16:48:04 -06:00
Marcos Kirsch
fa2e85dbb0
Support for Lua scripts
2015-02-15 16:46:29 -06:00
Marcos
94c90c39ab
Delete escape.py
...
experimental file was not needed
2015-02-14 21:50:16 -06:00
Marcos Kirsch
d23cafba97
Updates
2015-02-14 21:48:35 -06:00
Marcos Kirsch
f07b5d8760
increased timer time
2015-02-14 21:32:53 -06:00
Marcos Kirsch
51bfb3a8cc
Minor cleanup
2015-02-14 21:31:08 -06:00
Marcos Kirsch
5d4887927d
MIME types now correct
...
Support for different mime types based on the file extension.
Added some code for parsing the arguments after the file
(index.html?a=b&c=d) but it’s not in use yet.
2015-02-14 19:38:38 -06:00
Marcos Kirsch
b75d610e6a
Shortened code.
...
Reimplemented parseRequest (simpler). Shortened onReceive()
2015-02-14 01:48:49 -06:00
Marcos Kirsch
6e58f58b6d
Redesigned remote uses CSS
2015-02-14 01:22:36 -06:00