Marcos Kirsch
|
84f7a06aa1
No longer crashes when request is HTTP 1.0
|
преди 9 години |
Marcos Kirsch
|
a43fc20230
Remove debug traces, handle long filenames
|
преди 9 години |
Marcos Kirsch
|
4f6cd02b1f
Fixes serving multiple connections simultaneously by reopening and scanning the file
|
преди 9 години |
Marcos Kirsch
|
be08c78e8b
Remove image, was just for testing purposes
|
преди 9 години |
Marcos Kirsch
|
4a2dafccc8
Reorder, add image, add garage example
|
преди 9 години |
Marcos Kirsch
|
d5396202ea
Serve large files example, now with smaller large files
|
преди 9 години |
Marcos Kirsch
|
b10a137712
Finally works when serving multiple files simultaneously. Still need to clan up
|
преди 9 години |
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.
|
преди 9 години |
Marcos Kirsch
|
65538efc1b
Modified HTML to call lua script via javascript. Also embedded an image just for stress testing the server
|
преди 9 години |
Marcos Kirsch
|
e571f19d81
Increase chunk size, improved traces for debugging purposes.
|
преди 9 години |
Marcos Kirsch
|
2ae0a573d9
Functional garage_door_opener example.
|
преди 9 години |
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.
|
преди 9 години |
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.
|
преди 9 години |
Marcos Kirsch
|
1284b6363e
Add compilation of server files.
|
преди 9 години |
Marcos Kirsch
|
c805873395
Formatting change, but will delete
|
преди 9 години |
Marcos Kirsch
|
9c35443ea4
Updated to match code
|
преди 9 години |
Marcos Kirsch
|
50b1c09570
Updated to reflect latest status of the code
|
преди 9 години |
Marcos Kirsch
|
c1ca93a78c
Removed parameter that is no longer needed
|
преди 9 години |
Marcos Kirsch
|
f43025f237
init shows new way of starting server
|
преди 9 години |
Marcos Kirsch
|
5ebfa6ac8b
Updated to reflect server changes
|
преди 9 години |
Marcos Kirsch
|
5b472f3554
Add yield so that looong listings don't overflow mcu's buffer
|
преди 9 години |
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
|
преди 9 години |
Marcos Kirsch
|
f4875cbd86
Fix indentation
|
преди 9 години |
Marcos Kirsch
|
dfdae5dacd
Updates to README, added notes on memory usage, etc.
|
преди 9 години |
Marcos Kirsch
|
7c2d597bdc
Delete file that is not part of the server
|
преди 9 години |
Marcos
|
34d2e1ef55
Delete test.lua
|
преди 9 години |
Marcos Kirsch
|
d73bd73211
Added back improved version of validateMethod
|
преди 9 години |
Marcos Kirsch
|
796d17b205
commit some changes but I want to stop tracking, so that's next
|
преди 9 години |
Marcos Kirsch
|
9cea7cd370
Modify so all file types are uploaded, not just HTML files
|
преди 9 години |
Marcos Kirsch
|
9459bb2645
Add code that shows how to start the server
|
преди 9 години |