164 Commits

Author SHA1 Message Date
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
Marcos Kirsch
ad4042f3d6 Leave auth disabled by default 2015-07-20 21:13:11 -05:00
Marcos
1d3cdaf1a7 Merge pull request #29 from borromeotlhs/patch-8
Update node_info.lua
2015-07-20 15:42:30 -05:00
TJ Borromeo
e52ca7731f Update node_info.lua
reducing overhead from extra sends probably well beneath buffer limits
2015-07-20 13:22:38 -07:00
Marcos
8acc6aa8ca Fix title link 2015-07-20 10:01:49 -05:00
Marcos
cbcc7f22a0 Delete b64.py
File was renamed
2015-07-19 18:23:48 -05:00
Marcos Kirsch
1d4c253277 Merge branch 'master' of https://github.com/marcoskirsch/nodemcu-httpserver
he commit.
2015-07-19 18:22:06 -05:00
Marcos Kirsch
1918e8af96 Minor updates 2015-07-19 18:21:51 -05:00
Marcos
cac1a8146a Delete b64.lua
File was renamed
2015-07-19 13:36:34 -05:00
Marcos Kirsch
dcc8df4960 Update for renamed file 2015-07-19 13:35:07 -05:00
Marcos Kirsch
aa507264eb Better comments, add realm 2015-07-19 13:34:16 -05:00
Marcos Kirsch
0bd5e20c62 Retrofit for renamed file, display configurable realm 2015-07-19 13:33:47 -05:00
Marcos Kirsch
122926f9f6 Remove tabs, minor rework and comment updates 2015-07-19 13:32:59 -05:00
Marcos Kirsch
c693c7f90f Update for renamed file 2015-07-19 13:32:20 -05:00
Marcos Kirsch
69c7f385b8 Better not to start server automatically 2015-07-19 12:22:04 -05:00
Marcos Kirsch
820437a98a Was missing b64.lua 2015-07-19 12:21:12 -05:00
Marcos
e61f3c7556 Merge pull request #27 from samdieck/master
Added basic auth. Added static settings file
2015-07-19 09:20:25 -05:00
Marcos
350c868063 Merge pull request #28 from borromeotlhs/patch-7
Update args.lua
2015-07-19 09:19:05 -05:00
Marcos Kirsch
ba44745194 remove trailing whitespace 2015-07-19 09:04:25 -05:00
Marcos Kirsch
e49eec62d3 Fix: show minor version. Improve formatting 2015-07-19 09:03:37 -05:00
TJ Borromeo
19bac62e07 Update args.lua 2015-07-18 21:51:09 -07:00
Samuel A. Dieck
be63ee0093 Added basic auth. Added static settings file 2015-07-18 23:17:14 -05:00
Marcos Kirsch
f62995cf18 Update GPIO lines to use GPIO1 and GPIO2 on NodeMCU devkit 1 2015-07-18 22:43:10 -05:00
Marcos Kirsch
b017526d71 Show size, used, available space in file system 2015-07-18 22:42:29 -05:00
Marcos Kirsch
2878750f7c Update GPIO lines used by garage example 2015-07-18 22:41:51 -05:00
Marcos Kirsch
a26ea74609 Updated with newer notes on memory and firmware 2015-07-18 20:29:09 -05:00
Marcos
cac11d9a1a Merge pull request #26 from borromeotlhs/patch-6
Update file_list.lua
2015-07-17 17:07:54 -05:00
TJ Borromeo
25a7313af5 Update file_list.lua
get rid of variables if not actually used.  Create variables only when a condition to use them is met.
2015-07-17 14:17:09 -07:00
Marcos
a86f2d6384 Merge pull request #23 from geekscape/master
Correct check wifi.sta.getip() so that Wi-Fi station connection works.
2015-05-16 07:10:47 -05:00
Andy Gelme
90d533b555 Correct check wifi.sta.getip() so that Wi-Fi station connection works. 2015-05-16 16:56:28 +10:00
Marcos
e25b9c5ac0 Merge pull request #22 from borromeotlhs/patch-5
Update init.lua
2015-05-06 17:28:06 -05:00
Marcos
94c56a02b9 Merge pull request #21 from borromeotlhs/patch-4
Fix improper syntax in list
2015-05-06 17:27:33 -05:00
TJ Borromeo
fe2f227b0b Merge pull request #1 from borromeotlhs/rework-headers
Rework headers
2015-05-06 13:58:12 -07:00
TJ Borromeo
2672d3b467 Keep return type as is
No need for 501 error code, as this should be returned only when needed, and will be much more efficient to not:
1.) take a table entry for the majority of cases when it isn't needed
2.) Utilize only enough memory needed to instantiate a string when it _is_ needed.
2015-05-06 13:54:21 -07:00
TJ Borromeo
e01e97469f Update httpserver-header.lua 2015-05-06 13:42:06 -07:00
TJ Borromeo
0c17703b46 change return type
allows the error check to be more functional
2015-05-06 13:39:32 -07:00
TJ Borromeo
219baa7b62 Update httpserver-header.lua 2015-05-06 13:36:20 -07:00
TJ Borromeo
7beec37206 Update init.lua
Add one local variable to reduce one function call and take advantage of nil<=>false equivalance.
2015-05-06 13:25:02 -07:00
TJ Borromeo
b4842301a0 Fix improper syntax in list
brackets needed for non-standard table indexing.   Also added a trailing comma as its valid (and more consistent, imo).
2015-05-06 13:16:47 -07:00
Marcos
970906a89a Merge pull request #18 from borromeotlhs/patch-1
De-duplicate wifi.sta.getip() call
2015-05-02 07:28:46 -05:00
Marcos
f728775618 Merge pull request #19 from borromeotlhs/patch-2
Remove unnecessary if statements
2015-05-02 07:26:27 -05:00
Marcos
3e592adfcd Merge pull request #20 from borromeotlhs/patch-3
create a maintainable way to add HTTP Status codez
2015-05-02 07:25:46 -05:00
TJ Borromeo
472e397429 create a maintainable way to add HTTP Status codez
Again, nil is default for attrs not present in a table, so if you're not nil, you should just return what you know is defined.  Otherwise, return the "Unknown HTTP Status" default string.
2015-04-24 15:20:06 -07:00
TJ Borromeo
91c16d1e24 Remove unnecessary if statements
nil is false in lua, just utilizing that fact.
2015-04-24 15:06:34 -07:00