101 Commits

Author SHA1 Message Date
Marcos
2162192d26 Merge pull request #14 from pastukhov/master
Add ability to serve gz compressed files. It should end with .gz
2015-04-03 08:25:59 -05:00
Artem Pastukhov
489ecb2544 fix %.gz regexp 2015-04-03 13:23:33 +03:00
Artem Pastukhov
6d608af486 Fix end of line 2015-04-03 12:50:41 +03:00
Artem Pastukhov
a51a4d929b Fixes, fixes 2015-04-02 16:57:26 +03:00
Artem Pastukhov
596d9dd06b Fixes 2015-04-02 16:11:33 +03:00
Artem Pastukhov
dd7aa55d96 Fixes 2015-04-02 16:09:38 +03:00
Artem Pastukhov
e9903863a9 Manual merge changes 2015-04-02 16:07:25 +03:00
Artem Pastukhov
da17c3b346 Merge branch 'master' of https://github.com/pastukhov/nodemcu-httpserver
Conflicts:
	Makefile
	http/node_info.lua
	httpserver-static.lua
2015-04-02 16:02:39 +03:00
Artem Pastukhov
d198d1b433 add jquery and gz tests 2015-04-02 15:45:02 +03:00
Artem Pastukhov
60a95c420d remove http/ual.lua 2015-04-02 15:44:01 +03:00
Artem Pastukhov
6189a49f93 some fixes 2015-04-02 15:41:33 +03:00
Artem Pastukhov
278ee10a7c some fixes 2015-04-02 15:40:57 +03:00
Artem Pastukhov
a4a61c8329 some fixes 2015-04-02 15:39:37 +03:00
Artem Pastukhov
a37de51189 some fixes 2015-04-02 15:37:40 +03:00
Artem Pastukhov
11d1f96351 Update init.lua 2015-04-02 15:32:33 +03:00
Artem Pastukhov
5301792d16 Revert "Update init.lua"
This reverts commit 4989410f7b82a45de910b2f98a1a2d630090ad3b.

Conflicts:
	init.lua
2015-04-02 14:57:14 +03:00
Marcos Kirsch
2357415466 Retrofit for newer nodemcu-uploader 2015-04-01 23:14:52 -05:00
Marcos Kirsch
f09fe9a610 Fix typo: It's json not josn 2015-04-01 22:58:25 -05:00
Marcos Kirsch
f7969ae12d Fix typo in HTTP headers. I need to refactor so header creation is single sourced. Oh well. This may fix issues in Firefox 2015-04-01 22:56:47 -05:00
Marcos Kirsch
871105dc64 Support for modifying the serial port baud rate. 2015-04-01 22:30:35 -05:00
Artem Pastukhov
92a44592d5 Fix end of line 2015-04-01 08:57:18 +03:00
Artem Pastukhov
de121b6dfa Add ual.lua 2015-03-31 14:54:31 +03:00
Artem Pastukhov
269b6e35bf More typo fixes 2015-03-31 14:53:52 +03:00
Artem Pastukhov
0120924403 Fix some typos 2015-03-31 10:02:33 +03:00
Artem Pastukhov
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
2015-03-31 09:53:24 +03:00
Marcos
4989410f7b Update init.lua 2015-03-22 22:33:25 -05:00
Marcos Kirsch
eeb7d1dff3 Much nicer HTML design 2015-03-22 22:13:53 -05:00
Marcos Kirsch
63ed883c78 Updated with newer information 2015-03-22 22:13:12 -05:00
Marcos Kirsch
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. 2015-03-22 22:02:38 -05:00
Marcos Kirsch
dfb2dbecdf Smaller GIF, but animated 2015-03-22 22:00:42 -05:00
Marcos Kirsch
a0c25ca2c9 remove another large file 2015-03-22 22:00:18 -05:00
Marcos Kirsch
f80b37a915 Remove cars example, doesn't fit in flash memory well 2015-03-22 21:59:53 -05:00
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