231 Commits

Author SHA1 Message Date
Marcos Kirsch
dba1ca7968 Fix - make fileHandle and clean it up, so it plays nice with coroutines. 2017-01-01 23:02:18 -06:00
Marcos Kirsch
45edb29368 Fix crash when WiFi connection fails. 2017-01-01 22:13:51 -06:00
Marcos Kirsch
2165484413 Add file.fscfg() results to example. 2017-01-01 22:12:52 -06:00
Marcos Kirsch
2034480679 Simplify by using file object model API 2017-01-01 22:12:18 -06:00
Marcos Kirsch
7aa44cd1a9 Improve documentation related to HTTP Basic Authentication.
Fixes https://github.com/marcoskirsch/nodemcu-httpserver/issues/71
2016-12-30 14:37:15 -06:00
Marcos Kirsch
79e345d964 Allow multiple users for basic HTTP authentication. 2016-12-28 14:16:58 -06:00
Marcos Kirsch
10bcd2f170 Modified to work on floating point firmware builds using changes by hazarkarabay. Fixes https://github.com/marcoskirsch/nodemcu-httpserver/issues/37 2016-12-26 14:38:12 -06:00
Marcos Kirsch
2167d7290f Changed wifi config to STATION, which I think would be most common. Reworked starting the server until after IP address is acquired. Added mdns conditonal mdns registration (thank you firmware people\!) 2016-12-26 13:51:40 -06:00
Marcos Kirsch
472af17b18 Merge branch 'master' of https://github.com/marcoskirsch/nodemcu-httpserver 2016-12-26 13:49:04 -06:00
Marcos Kirsch
856ef7a590 There was a typo (entra n) when sending 'Cache-Control: private, no-store' in the header. I removed the whole thing because why not let browser cache? 2016-12-26 13:48:54 -06:00
Marcos Kirsch
badbf6e2b9 This is really annoying... normalize line endings to Unix (LF). Please use Unix line endings so things diff right with git. 2016-12-26 13:47:22 -06:00
Marcos Kirsch
f060295ef7 Remove print about server running from server code itself. Client can choose to do the prints from init.lua if client wants to, This seems more appropritate. 2016-12-26 13:44:41 -06:00
Marcos Kirsch
8b46df0f75 Chage baud rate to 115200 which seems to be the defualt for newer nodemcu-firmware builds/ 2016-12-26 13:41:06 -06:00
Marcos
d74b26be7d Merge pull request #69 from ffedoroff/patch-1
line shorter
2016-12-17 21:41:16 -06:00
Marcos
241de797b0 Merge pull request #70 from computerlyrik/uploader-configuration
modularize nodemcu-command, add start_baud parameter
2016-12-17 21:40:42 -06:00
Marcos Kirsch
1cc0d120f0 Add private to Cache-Control 2016-12-17 21:12:25 -06:00
Christian Fischer
ea74a6de7d modularize nodemcu-command, add start_baud parameter 2016-12-09 17:54:31 +01:00
ffedoroff
73fbf92986 line shorter
line is too long and luatool.py raize exception when uploading that file
2016-11-02 16:37:41 +06:00
Marcos Kirsch
b84739dc1b Minor documentation, variable renaming, refactoring to increase readability. Basically, I want the socket callbacks to receive a pointer to a function names onWhatever and I don't want other functions to have such names. 2016-02-21 22:14:01 -06:00
Marcos Kirsch
bf7f918d28 Added comments, chunk sized cannot be presently increased. 2016-02-21 22:12:09 -06:00
Marcos Kirsch
f9d94d9aa2 Fixed typo in HTML and reduced file size of image. 2016-02-21 22:11:03 -06:00
Marcos Kirsch
8e3fb81062 Remove TODO for BufferedConnection, decided to go keep the buffering after getting feedback 2016-02-21 22:10:27 -06:00
Marcos
9bd12123b0 Merge pull request #54 from devyte/master
httpserver-connection: implement fragmentation logic
2016-02-21 20:32:18 -06:00
Marcos
c37560ad5f Merge pull request #55 from marcelstoer/patch-1
Fix NodeMCU docs link
2016-02-21 15:31:00 -06:00
Marcel Stör
1ed7243056 Fix NodeMCU docs link 2016-02-21 21:42:24 +01:00
Develo
3dd98667dd httpserver-connection: implement fragmentation logic
Implement fragmentation logic in send() method of bufferedConnection:send(). Now, payloads are accumulated up to a threshold amount of bytes, and then flushed. If a payload would make the total accumulated larger, it gets carved to complete threshold and flushed. Any remainder get successively flushed in threshold-sized chunks, until the remainder is less than threshold, which then gets again buffered.
2016-02-21 15:48:49 -03:00
Marcos Kirsch
1b4a2c9d9a Concatenate .. less in lua since BufferedConnection will do it for us anyway: 2016-02-21 12:23:06 -06:00
Marcos Kirsch
11ae46c96b Improved print to show what the method is for a specific URI 2016-02-21 12:22:16 -06:00
Marcos Kirsch
86b00f922c Added example that loads several images as a stress test. This does not currently work. 2016-02-21 11:32:35 -06:00
Marcos Kirsch
2ed2e6f636 Add TODO.md file to keep track of things that aren't necessarily issues 2016-02-16 23:02:23 -06:00
Marcos Kirsch
a75f74efb5 Improve documentation 2016-02-16 23:00:37 -06:00
Marcos Kirsch
e7db3dce7d Moved BufferedConnection into its own file. 2016-02-16 22:45:14 -06:00
Marcos Kirsch
3357919f44 typo 2016-02-16 09:05:38 -06:00
Marcos Kirsch
e255d7f6b1 Add Terry Ellison quote 2016-02-16 09:03:13 -06:00
Marcos Kirsch
59e0218a72 Fix https://github.com/marcoskirsch/nodemcu-httpserver/issues/36 2016-02-15 23:19:29 -06:00
Marcos Kirsch
4776545a41 added Contributing section 2016-02-15 23:01:59 -06:00
Marcos Kirsch
d71b079932 clean up, but example does not work at this time 2016-02-15 22:54:19 -06:00
Marcos Kirsch
2f2fb26782 Several fixes and code cleanup. Gzipped files now work. Indentation cleaned up, Other small fixes: 2016-02-15 22:52:30 -06:00
Marcos Kirsch
11dde7075b Added a second link to zipped file, with gz extension 2016-02-15 22:48:53 -06:00
Marcos Kirsch
5ccc69dc73 Updated examples to remove yields, pass req param. Integration woes. 2016-02-15 22:33:30 -06:00
Marcos Kirsch
d31b2d2c89 No need to yield. Conditionally show form. Updated title. 2016-02-15 22:31:48 -06:00
Marcos Kirsch
066b602444 Updated README with new instructions 2016-02-15 22:31:08 -06:00
Marcos Kirsch
fbc6506faa Merged with main repository 2016-02-15 20:54:11 -06:00
Marcos Kirsch
64f07cb38d Change NodeMCU firmware link to point to github project. 2016-02-15 14:21:16 -06:00
Marcos Kirsch
4d4442318d Fix example server-side scripts to work on new nodemcu-firmware. Specifically, call coroutine.yield() after each connection:send() except the last one, since we can no longer queue sends. 2016-02-15 14:20:28 -06:00
Marcos Kirsch
4ff7b2b78d Trivial placeholder print statement, useful for debugging. 2016-02-15 13:52:27 -06:00
Marcos Kirsch
1b14a516aa Fix bugs for newer nodemcu-firmware: new firmware does not allow queuing multiple connection:send() operations. These changes ensure we yield after every send except the last one. 2016-02-15 13:52:01 -06:00
Marcos Kirsch
37e58389c6 Trivial improvement to print message 2016-02-15 13:46:50 -06:00
Marcos Kirsch
0e4b515514 Default to join an existing WiFi network, more common at least for my own testing 2016-02-15 13:12:19 -06:00
Marcos Kirsch
33b94ec5d5 Modified Makefile so that the nodemcu-uploader script no longer needs to be executable 2016-02-15 13:08:59 -06:00