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