Commit Graph

  • 489ecb2544 fix %.gz regexp Artem Pastukhov 2015-04-03 13:23:33 +03:00
  • 6d608af486 Fix end of line Artem Pastukhov 2015-04-03 12:50:41 +03:00
  • a51a4d929b Fixes, fixes Artem Pastukhov 2015-04-02 16:57:26 +03:00
  • 596d9dd06b Fixes Artem Pastukhov 2015-04-02 16:11:33 +03:00
  • dd7aa55d96 Fixes Artem Pastukhov 2015-04-02 16:09:38 +03:00
  • e9903863a9 Manual merge changes Artem Pastukhov 2015-04-02 16:07:25 +03:00
  • da17c3b346 Merge branch 'master' of https://github.com/pastukhov/nodemcu-httpserver Artem Pastukhov 2015-04-02 16:02:39 +03:00
  • d198d1b433 add jquery and gz tests Artem Pastukhov 2015-04-02 15:45:02 +03:00
  • 60a95c420d remove http/ual.lua Artem Pastukhov 2015-04-02 15:44:01 +03:00
  • 6189a49f93 some fixes Artem Pastukhov 2015-04-02 15:41:33 +03:00
  • 278ee10a7c some fixes Artem Pastukhov 2015-04-02 15:40:57 +03:00
  • a4a61c8329 some fixes Artem Pastukhov 2015-04-02 15:39:37 +03:00
  • a37de51189 some fixes Artem Pastukhov 2015-04-02 15:37:40 +03:00
  • 11d1f96351 Update init.lua Artem Pastukhov 2015-04-02 15:32:33 +03:00
  • 5301792d16 Revert "Update init.lua" Artem Pastukhov 2015-04-02 14:57:14 +03:00
  • 2357415466 Retrofit for newer nodemcu-uploader Marcos Kirsch 2015-04-01 23:14:52 -05:00
  • f09fe9a610 Fix typo: It's json not josn Marcos Kirsch 2015-04-01 22:58:25 -05:00
  • 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
  • de121b6dfa Add ual.lua Artem Pastukhov 2015-03-31 14:54:31 +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
  • 4989410f7b Update init.lua Marcos 2015-03-22 22:33:25 -05: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
  • a43fc20230 Remove debug traces, handle long filenames Marcos Kirsch 2015-03-15 22:12:51 -05:00
  • 4f6cd02b1f Fixes serving multiple connections simultaneously by reopening and scanning the file Marcos Kirsch 2015-03-15 22:12:00 -05:00
  • be08c78e8b Remove image, was just for testing purposes Marcos Kirsch 2015-03-15 22:10:11 -05:00
  • 4a2dafccc8 Reorder, add image, add garage example Marcos Kirsch 2015-03-15 22:09:18 -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
  • e571f19d81 Increase chunk size, improved traces for debugging purposes. Marcos Kirsch 2015-03-10 22:12:49 -05:00
  • 2ae0a573d9 Functional garage_door_opener example. Marcos Kirsch 2015-03-08 20:10:37 -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
  • f4875cbd86 Fix indentation Marcos Kirsch 2015-02-28 16:34:24 -06:00
  • dfdae5dacd Updates to README, added notes on memory usage, etc. Marcos Kirsch 2015-02-22 16:44:44 -06:00
  • 7c2d597bdc Delete file that is not part of the server Marcos Kirsch 2015-02-22 16:29:08 -06:00
  • 34d2e1ef55 Delete test.lua Marcos 2015-02-22 16:27:30 -06:00
  • d73bd73211 Added back improved version of validateMethod Marcos Kirsch 2015-02-22 16:25:31 -06:00
  • 796d17b205 commit some changes but I want to stop tracking, so that's next Marcos Kirsch 2015-02-22 16:21:03 -06:00
  • 9cea7cd370 Modify so all file types are uploaded, not just HTML files Marcos Kirsch 2015-02-22 16:20:36 -06:00
  • 9459bb2645 Add code that shows how to start the server Marcos Kirsch 2015-02-22 16:09:06 -06:00
  • 068b45023e Delete, this is now part of node-info.lua Marcos Kirsch 2015-02-22 16:06:35 -06:00
  • 316af66d3c Improve demo files Marcos Kirsch 2015-02-22 16:06:06 -06:00
  • 5fe2dfcf9d Add script that shows how arguments are handled by server Marcos Kirsch 2015-02-22 16:05:35 -06:00
  • 5c1404dcea Erase, not used Marcos Kirsch 2015-02-22 16:05:10 -06:00
  • 6ba7c02381 Attempt at improving the printing, but will delete anyway Marcos Kirsch 2015-02-22 16:04:08 -06:00
  • 524730d4e5 Merge pull request #1 from samdieck/master Marcos 2015-02-17 22:02:36 -06:00
  • ac387a6c2c add open issue Marcos Kirsch 2015-02-15 16:54:05 -06:00
  • 62760f1f80 add feature Marcos Kirsch 2015-02-15 16:53:08 -06:00
  • c0d6218397 Support for Lua scripts Marcos Kirsch 2015-02-15 16:51:21 -06:00
  • 00475af342 Add links to examples Marcos Kirsch 2015-02-15 16:48:54 -06:00
  • 3f5caa7afb Clean up Marcos Kirsch 2015-02-15 16:48:30 -06:00
  • 685102f478 Updates Marcos Kirsch 2015-02-15 16:48:04 -06:00
  • fa2e85dbb0 Support for Lua scripts Marcos Kirsch 2015-02-15 16:46:29 -06:00
  • 94c90c39ab Delete escape.py Marcos 2015-02-14 21:50:16 -06:00
  • d23cafba97 Updates Marcos Kirsch 2015-02-14 21:48:35 -06:00
  • f07b5d8760 increased timer time Marcos Kirsch 2015-02-14 21:32:53 -06:00
  • 51bfb3a8cc Minor cleanup Marcos Kirsch 2015-02-14 21:31:08 -06:00
  • 5d4887927d MIME types now correct Marcos Kirsch 2015-02-14 19:38:38 -06:00
  • b75d610e6a Shortened code. Marcos Kirsch 2015-02-14 01:48:49 -06:00
  • 6e58f58b6d Redesigned remote uses CSS Marcos Kirsch 2015-02-14 01:22:36 -06:00
  • c33ba75395 Send files in little chunks, large files work now. Marcos Kirsch 2015-02-14 01:19:38 -06:00
  • 8272d8f59c Functional GET can serve text files up to 1 KB Marcos Kirsch 2015-02-14 00:22:23 -06:00
  • b0cbe2a77f Fix for Lua builds without floating point. Marcos Kirsch 2015-02-13 23:08:28 -06:00
  • 44b40f00f3 Fixed upload_lua target in makefile Samuel A. Dieck 2015-02-13 00:19:26 -06:00
  • 2da23c36ed Added makefile to upload files via luatool. Samuel A. Dieck 2015-02-13 00:12:43 -06:00
  • d137648706 More of a scratch pad, shouldn't be in source control at all but oh well... Marcos Kirsch 2015-02-08 22:12:26 -06:00
  • ef30ef3811 These files are gone... Marcos Kirsch 2015-02-08 22:10:58 -06:00
  • 294b781a52 Updates Marcos Kirsch 2015-02-08 22:10:24 -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
  • b1f87f3ffa Functional Base64 prior to cleanup Marcos Kirsch 2015-02-07 12:12:48 -06:00
  • 1c709b838b Minimalistic server can be started and returns hardcoded message, prior to cleanup Marcos Kirsch 2015-02-06 21:54:25 -06:00
  • ba390bb855 Renamed file. Marcos Kirsch 2015-02-06 20:58:00 -06:00
  • f52e8f47e6 Add all files to source control even though they are messy and don't do much yet Marcos Kirsch 2015-02-02 19:01:24 -06:00
  • 49d8dc8d43 Initial commit Marcos 2015-02-02 18:44:41 -06:00