Siggi
ca836f1944
Lfs fix ( #131 )
...
* added
- usage info for LFS targets
- lfs.img build rule (requires luac.cross from nodemcu-firmware)
- basic autodetection for USB serial device
* updated LFS code for recent nodemcu versions
* safe default (SOFTAP)
* Revert "safe default (SOFTAP)"
This reverts commit a76db2a153f421cc81e9c1caf0903d550043b1d6.
* removed compatibility code
* updated nodemcu-firmware requirement
Co-authored-by: langausd <langausd@github.com>
2021-04-10 15:03:41 -05:00
seregaxvm
6511dad8df
allow running server from LFS ( #125 )
2019-11-18 13:32:47 -06:00
Marcos
7cdbe0ffd0
Move init.lua code into 3 smaller files. Consolidate server configuration. ( #94 )
...
* Move server initialization out of init.lua and into new httpserver-init.lua
* Use wildcard for finding server files to upload.
* Break init.lua up into 3 files. Move all configuration to httpserver.conf.
New files are:
* httpserver-compile.lua
* httpserver-wifi.lua
* httpserver-init.lua
2017-07-01 22:01:45 -05:00
Marcos
adde150009
Overhaul garage door example ( #93 )
...
* script for controlling garage that is aware of door states
* Overhaul garage door example
Hardware now calls for reed relay in order to be able to tell the state
of the switch. This way, we can have distinct open/close operations
that error if the door is already in that state. Allows for potential
better integration with home automation systems.
* Prepare for push to GitHub
* Restore defaults
* Make HTTP auth realm match zeroconf networking name
2017-07-01 15:18:11 -05: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
45edb29368
Fix crash when WiFi connection fails.
2017-01-01 22:13:51 -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
e7db3dce7d
Moved BufferedConnection into its own file.
2016-02-16 22:45:14 -06:00
Marcos Kirsch
fbc6506faa
Merged with main repository
2016-02-15 20:54:11 -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
Hazar Karabay
0ddaa52527
init.lua typo
...
Deleting stray character at line 92.
2015-09-16 22:10:49 +03:00
Pospa
bbcce2d64d
AP mode support added
2015-08-09 15:18:08 +02:00
Marcos Kirsch
dcc8df4960
Update for renamed file
2015-07-19 13:35:07 -05:00
Marcos Kirsch
69c7f385b8
Better not to start server automatically
2015-07-19 12:22:04 -05:00
Samuel A. Dieck
be63ee0093
Added basic auth. Added static settings file
2015-07-18 23:17:14 -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
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
Marcos Kirsch
ead632d131
Refactoring - function for sending headers is now in its own file. All errors are sent using coroutine. Some other memory usage improvements
2015-04-19 23:42:58 -05:00
Marcos Kirsch
99be566549
Improved for easier configuration, better messages, and slightly improved memory handling
2015-04-18 23:21:01 -05:00
Artem Pastukhov
a51a4d929b
Fixes, fixes
2015-04-02 16:57:26 +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
Artem Pastukhov
92a44592d5
Fix end of line
2015-04-01 08:57:18 +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
Marcos
4989410f7b
Update init.lua
2015-03-22 22:33:25 -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
1284b6363e
Add compilation of server files.
2015-03-08 19:45:43 -05:00
Marcos Kirsch
c1ca93a78c
Removed parameter that is no longer needed
2015-02-28 16:57:30 -06:00
Marcos Kirsch
f43025f237
init shows new way of starting server
2015-02-28 16:40:36 -06:00
Marcos Kirsch
9459bb2645
Add code that shows how to start the server
2015-02-22 16:09:06 -06:00
Marcos Kirsch
3f5caa7afb
Clean up
2015-02-15 16:48:30 -06:00
Marcos Kirsch
f07b5d8760
increased timer time
2015-02-14 21:32:53 -06:00
Marcos Kirsch
a86b6711bb
Cleaned up
2015-02-08 22:03:44 -06:00
Marcos Kirsch
f52e8f47e6
Add all files to source control even though they are messy and don't do much yet
2015-02-02 19:01:24 -06:00