Designing a web interface for an embedded system

OS: Linux.

I am trying to find possible ways to implement a web interface for my embedded system. Currently, there is a shell (based on text) and a small set of commands has been implemented to query the device.

I am new to web development, my questions are:

  1. Which web server should I use? (I installed apache on my development settings and tried using CGI to extract some pages, but it seems like this is not the right choice for embedded systems)

  2. Assuming I'm using CGI, what strategy can I use to transfer data between the CGI and the Main Application? I intended to create a thread in MainApp to handle the request from a CGI script. This thread will call the interfaces in MainApp, retrieve the data and pass it to the CGI.

+4
source share
5 answers

We use Lighttpd on our embedded systems, it is small and very easy to integrate. There are also specialized web servers with features specifically designed for embedding, such as AppWeb , which, in my opinion, is also a very good product.

CGI System V, . SYSV , , , (, () ).

+9

- thttpd. .

CGI .

+4

-, , , apache. Apache .

CGI. . Appweb, . -:

  • Ejscript, Javascript Appweb
  • ESP, - MVC C-Language

ESP URL-. Ejscript . . CGI 20 , CGI.

0

LuCI, CGI . openwrt, .

uhttpd, .

CGI script - Lua, 10k, , ? C C, .

, .

0

JUCI openwrt. javascript, - json rest api. , , C, (ubus). , ubus, cli, rest api. .

0

Source: https://habr.com/ru/post/1726965/


All Articles