An HTTP webserver for Nuttx. Written in Lua and powered by libuv. Uses coroutines to respond to asynchronous requests.
Most of this code is copied from Atlas and
trimmed down to fit a small embedded system running Nuttx. Atlas implements an
ASGI architecture like
Python's Django webserver. There is an app
directory that registers a set of functions to be called for each requested
route. The sever is in the atlas
directory.
Copy all source files to a permanent filesystem in your system, such as a SD card.
Run lua start-server.lua
.
Modify the config
variable in start-server.lua
as desired.