配网,代码流程:
| -> t-webcfg: demo_console_info_t, DEMO_CONNECT_NET
| -> demo_webserver_config()
| -> tls_wifi_set_oneshot_flag()
| -> tls_wifi_start_oneshot()
| -> tls_oneshot_task_create()
| -> tls_oneshot_task_handle()
| -> tls_webserver_init()
| -> httpd_init(80) -> http_set_cgi_handlers -> do_cgi_config : (tCGI Cgi[8]=)
| -> tcp_accept(web_pcb, http_accept)
| -> tcp_recv(pcb, http_recv)
| -> extract_html_recive(HtmlBegin,hs,pcb)
web get响应和对应的参数控制:
| -> httpd_init(80)
| -> tcp_accept
| -> http_accept
| -> http_recv
| -> extract_html_recive
| -> g_pCGIs[i].pfnCGIHandler
| -> do_cgi_config
网友评论