f7969ae12d
Fix typo in HTTP headers. I need to refactor so header creation is single sourced. Oh well. This may fix issues in Firefox
Marcos Kirsch
2015-04-01 22:56:47 -05:00
871105dc64
Support for modifying the serial port baud rate.
Marcos Kirsch
2015-04-01 22:30:35 -05:00
92a44592d5
Fix end of line
Artem Pastukhov
2015-04-01 08:57:18 +03:00
269b6e35bf
More typo fixes
Artem Pastukhov
2015-03-31 14:53:52 +03:00
0120924403
Fix some typos
Artem Pastukhov
2015-03-31 10:02:33 +03:00
71058e6b44
Fix some typos Add ability to start httpserver with wifi.ap mode Add http/updateaplist.lua that create http/aplist.json with list of access points
Artem Pastukhov
2015-03-31 09:53:24 +03:00
eeb7d1dff3
Much nicer HTML design
Marcos Kirsch
2015-03-22 22:13:53 -05:00
63ed883c78
Updated with newer information
Marcos Kirsch
2015-03-22 22:13:12 -05:00
75ed944678
Refactored server to move request parsing into a separate file. This allows the server to be used in firmware builds with floating point enabled.
Marcos Kirsch
2015-03-22 22:02:38 -05:00
dfb2dbecdf
Smaller GIF, but animated
Marcos Kirsch
2015-03-22 22:00:42 -05:00
a0c25ca2c9
remove another large file
Marcos Kirsch
2015-03-22 22:00:18 -05:00
f80b37a915
Remove cars example, doesn't fit in flash memory well
Marcos Kirsch
2015-03-22 21:59:53 -05:00
84f7a06aa1
No longer crashes when request is HTTP 1.0
Marcos Kirsch
2015-03-22 11:45:39 -05:00
d5396202ea
Serve large files example, now with smaller large files
Marcos Kirsch
2015-03-15 22:07:35 -05:00
b10a137712
Finally works when serving multiple files simultaneously. Still need to clan up
Marcos Kirsch
2015-03-15 13:16:59 -05:00
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.
Marcos Kirsch
2015-03-10 22:15:52 -05:00
65538efc1b
Modified HTML to call lua script via javascript. Also embedded an image just for stress testing the server
Marcos Kirsch
2015-03-10 22:14:10 -05:00
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.
Marcos Kirsch
2015-03-08 19:49:27 -05:00
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.
Marcos Kirsch
2015-03-08 19:48:23 -05:00
1284b6363e
Add compilation of server files.
Marcos Kirsch
2015-03-08 19:45:43 -05:00
c805873395
Formatting change, but will delete
Marcos Kirsch
2015-03-04 12:33:18 -06:00
9c35443ea4
Updated to match code
Marcos Kirsch
2015-03-04 12:31:46 -06:00
50b1c09570
Updated to reflect latest status of the code
Marcos Kirsch
2015-02-28 17:00:03 -06:00
c1ca93a78c
Removed parameter that is no longer needed
Marcos Kirsch
2015-02-28 16:57:30 -06:00
f43025f237
init shows new way of starting server
Marcos Kirsch
2015-02-28 16:40:36 -06:00
5ebfa6ac8b
Updated to reflect server changes
Marcos Kirsch
2015-02-28 16:40:06 -06:00
5b472f3554
Add yield so that looong listings don't overflow mcu's buffer
Marcos Kirsch
2015-02-28 16:39:40 -06:00
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
Marcos Kirsch
2015-02-28 16:39:06 -06:00
3d4e4ee501
First pass of server. Not fully operational. Basic GET works, serves requested file. But server runs out of memory or/and only works with one connection.
Marcos Kirsch
2015-02-08 22:09:20 -06:00
3e452992c8
Renamed file and minor cleanup.
Marcos Kirsch
2015-02-08 22:08:18 -06:00
a8d408f375
Some example HTML file.
Marcos Kirsch
2015-02-08 22:06:50 -06:00
1ff3867733
Base64 decoding function is operational
Marcos Kirsch
2015-02-08 22:05:08 -06:00
a86b6711bb
Cleaned up
Marcos Kirsch
2015-02-08 22:03:44 -06:00
4dffc7009d
Function for Base64 decoding, needed for luatool.py binary uploads
Marcos Kirsch
2015-02-07 12:30:03 -06:00