Gregor
3833ec8a7b
httpserver-header.lc requires the file extension not the MIME type
2017-05-29 19:13:30 +02:00
Marcos
90cb4e47aa
Merge pull request #79 from stephanMettler/master
...
Update httpserver.lua
2017-03-03 08:08:28 -05:00
smet
79313b0644
Update httpserver.lua
...
fixed typo
2017-03-03 05:18:56 +01:00
Marcos Kirsch
2dea3c9daa
Restart if can't connect or connection is lost
...
Use wifi.eventmon to start server once we have IP, rather than checking
in a loop.
Use wifi.eventmon to restart server if connection is lost.
Use a timer to check if we ever even got a connection after 30 seconds.
Cleaned some other things up.
2017-02-05 08:42:16 -06:00
Marcos Kirsch
6ab6fcfff1
Modify for more standard hardware Wemos D1 Pro and its relay shield.
2017-02-04 23:18:16 -06:00
Marcos Kirsch
cc2173e334
Improve wording, ordering of links
2017-02-04 22:23:44 -06:00
Marcos Kirsch
2e25a63807
Improved logging via serial.
...
Created a single log function that prints a standard message that
includes IP and port of client. Remove or commented out other debug
prints.
2017-02-04 21:50:57 -06:00
Marcos Kirsch
6efa4ce3c0
Add simple text example
2017-01-27 22:22:31 -06:00
Marcos Kirsch
87e1a4babc
upload.html fixes
...
Minor modifications so it works without zipping and without compiling
lua. Fits well on WEMOS D1 Pro - we’ll see if anyone complains.
2017-01-27 22:13:50 -06:00
Marcos
d27251c698
Merge pull request #76 from marcoskirsch/dev
...
Merge pull request #75 from marcoskirsch/master
2017-01-27 22:01:14 -06:00
Marcos
189e4a5c56
Merge pull request #75 from marcoskirsch/master
...
Merge master to dev
2017-01-27 21:59:05 -06:00
Marcos
1a5f7507be
Merge branch 'dev' into master
2017-01-27 21:58:50 -06:00
Marcos
dbeaf452bd
Merge pull request #74 from ATAMAH/dev
...
Upload form for nodemcu-httpserver
2017-01-27 21:52:03 -06:00
ATAMAH
bc3ffffa0c
Upload form for nodemcu-httpserver
...
Now you can update your files in /http directory of your tiny webserver
over Wi-Fi!
Drag&drop or browse one or multiple files.
List uploaded files.
Delete files.
Automatically rename files to http/(filename)
Automatically compile .lua files.
Shows total/used memory.
You must compile upload.lua file!
Have some bugs but works pretty well even for uploading lot of files.
2017-01-23 12:36:46 +03:00
Marcos Kirsch
76750ab99a
Fixed formatting, and added more info on how this stress test crashes and hints on further testing.
2017-01-01 23:09:48 -06:00
Marcos Kirsch
c59af98e19
Change reference to number of images loaded by cars.html more ambiguous, in case that ever changes rendering this incorrect.
2017-01-01 23:09:08 -06:00
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
c2aeffc130
Merge pull request #62 from bhollosi/dev
...
typo fix at Cache-Control header, new http response code: 500
2016-05-26 19:38:38 -05:00
Balazs Hollosi
2b75289dfc
typo fix at Cache-Control header, new http response code: 500 / internal server error
2016-05-27 01:35:10 +02:00
Balazs Hollosi
67e5ff5c20
typo fix at Cache-Control header, new http response code: 500 / internal server error
2016-05-27 01:12:57 +02:00
Marcos
989b4c1d36
Merge pull request #60 from marcoskirsch/master
...
http-server
2016-05-04 16:10:31 -05: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