20190425_jeffrey - silenceuncrio/diary GitHub Wiki
繼續昨天 fastcgi 的第一個範例 - TinyFastCGI
#include "fcgi_stdio.h" /* fcgi library; put it first*/
#include <stdlib.h>
int count;
void initialize(void)
{
count=0;
}
void main(void)
{
/* Initialization. */
initialize();
/* Response loop. */
while (FCGI_Accept() >= 0) {
printf("Content-type: text/html\r\n"
"\r\n"
"<title>FastCGI Hello! (C, fcgi_stdio library)</title>"
"<h1>FastCGI Hello! (C, fcgi_stdio library)</h1>"
"Request number %d running on host <i>%s</i>\n",
++count, getenv("SERVER_HOSTNAME"));
}
}
搭配 Makefile 如下
-include ../.config
-include ../crosscmpl_vars
-include ../env_vars
default all: tiny.o
@echo =================================================================
@echo build target $@ ...
@echo =================================================================
$(CC) $(CFLAGS) $(LDFLAGS) tiny.o -o tiny.fcgi $(ICOS_LIBS) -lfcgi
$(STRIP) tiny.fcgi
clean:
rm -rf *.o
rm -rf tiny.fcgi
%.o:%.c
$(CC) -c $(CFLAGS) -o $@ $<
.PHONY: all install default
得到 tiny.fcgi
user@aef20c2bd55a:~/proscend/prosrc$ ls fcgi/* -l
-rw-rw-r-- 1 user user 457 Apr 25 01:28 fcgi/Makefile
-rw-rw-r-- 1 user user 573 Apr 25 01:23 fcgi/tiny.c
-rwxr-xr-x 1 user user 4220 Apr 25 01:28 fcgi/tiny.fcgi
-rw-r--r-- 1 user user 6036 Apr 25 01:28 fcgi/tiny.o
需要幫忙把 M300 WiFi page sync 到 M330 去
另外 M330 login 追加的 轉圈圈
要 sync 到 M300 去
先做 - M330 login 追加的 轉圈圈
要 sync 到 M300 去
M330 login 追加的 轉圈圈
要 sync 到 M300 去 - 搞定
commit 88944c59e5dc6be8b301c6f2cd17ec0ac286e83b
Refs: [release/v2.00], {origin/release/v2.00}
Author: jeffrey <[email protected]>
Date: Thu Apr 25 11:08:09 2019 +0800
use some animation to indicate the login status
proscend/prosrc/www/app/feature/login.html | 8 ++++++--
proscend/prosrc/www/app/feature/login.js | 8 ++++++++
2 files changed, 14 insertions(+), 2 deletions(-)
M300 的 wifi for setting wizard 漏了一組 cgi
commit 982140feb59e915d8c780f9dbb853872a7751f32
Refs: [release/v2.00], {origin/release/v2.00}
Author: jeffrey <[email protected]>
Date: Thu Apr 25 11:55:04 2019 +0800
add `wifi_apsta.cgi?act=set` for setting wizard
proscend/prosrc/webcgi/wifi_apsta.c | 4 ++++
1 file changed, 4 insertions(+)
把 M300 WiFi page sync 到 M330 去
commit 3fd8fe384e7b7c24dadf0199d98ac75ca0f958c9
Refs: [develop], {origin/develop}
Author: jeffrey <[email protected]>
Date: Thu Apr 25 13:42:25 2019 +0800
sync wifi related web ui from m300
proscend/prosrc/webcgi/wifi_apsta.c | 165 ++++++++++++++++++++-
proscend/prosrc/www/app/feature/wifi_apsta.html | 76 +++++++---
proscend/prosrc/www/app/feature/wifi_apsta.js | 25 +++-
proscend/prosrc/www/app/feature/wifi_info.html | 55 +++++++
proscend/prosrc/www/app/feature/wifi_info.js | 53 +++++++
proscend/prosrc/www/app/locale-en.json | 25 +++-
proscend/prosrc/www/app/locale-fr.json | 25 +++-
proscend/prosrc/www/app/locale-zh-tw.json | 25 +++-
proscend/prosrc/www/app/services/icos.service.js | 9 ++
proscend/prosrc/www/src/index.html.src | 1 +
proscend/prosrc/www/src/manual.html.src | 7 +
proscend/prosrc/www/src/manual/sidebar.h.html | 13 ++
proscend/prosrc/www/src/manual/wifi_config.h.html | 58 ++++++++
.../prosrc/www/src/manual/wifi_infomation.h.html | 35 +++++
proscend/prosrc/www/src/menu.html.src | 1 +
15 files changed, 532 insertions(+), 41 deletions(-)
繼續天 fastcgi 的第一個範例 - TinyFastCGI
想辦法讓 tiny.fcgi
搭配 lighttpd 跑起來
看一下文件 the FastCGI Interface
幫忙 M360 做點小修改
commit 5f00fc84871b114cf0d43bbece07114906a2ec8e
Refs: [release/v1.00], {origin/release/v1.00}
Author: jeffrey <[email protected]>
Date: Thu Apr 25 14:40:11 2019 +0800
give more width for ssid input field
proscend/prosrc/www/app/feature/wifi_apsta.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
不過根本沒板子測試
只好告知提出需求的 ariel 讓他幫忙 verify
ariel 竟表示他說錯了
是 M330 才對
順手加一下吧
commit 2d689d255a1b5e47b4b713bf3f5fab8c285f7533
Refs: [develop], {origin/develop}
Author: jeffrey <[email protected]>
Date: Thu Apr 25 14:56:50 2019 +0800
give more width for ssid input field
proscend/prosrc/www/app/feature/wifi_apsta.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
M330 產測追加 command
commit 5030ca4515b06c17cbc9765f07e69e9aa37a010d
Refs: [develop], {origin/develop}
Author: jeffrey <[email protected]>
Date: Thu Apr 25 17:57:39 2019 +0800
about the profile '2_MANUFACTURE': add CLI
- status
- gps
for ex.
M330# status gps list
latitude = 24.7743
longitude = 121.0065
hdop = 0.0
altitude = 0.00
date =
nsat = 0
proscend/mconfig/configs/M330/2_MANUFACTURE/defconfig | 2 +-
proscend/prosrc/icos/clishell/cli_status.c | 8 ++++++++
2 files changed, 9 insertions(+), 1 deletion(-)