XuNeo / nuttx-lua-webserver

Async HTTP webserver for Nuttx, written in Lua and powered by libuv

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nuttx Lua webserver

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.

Installation

Copy all source files to a permanent filesystem in your system, such as a SD card.

Usage

Run lua start-server.lua.

Modify the config variable in start-server.lua as desired.

About

Async HTTP webserver for Nuttx, written in Lua and powered by libuv

License:MIT License


Languages

Language:Lua 100.0%