⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme.txt

📁 世纪民生公司的带网络功能的单片机CS6209开发http服务器的演示源代码。
💻 TXT
字号:
About this DEMO
	This demo is a sample web server DEMO program . It store web pages in EEPROM or 
Code memory .

HOW TO USE HTTP SERVER API

1.Include "http.h" head file in main.c and libif.c

2.Add http_init(); in main.
	
3.Add http_server(ts, conn) in server_action function like

	if (port==80)
		return(http_server(ts, conn));

4. Add web pages
The webpages can be store in code memory or eeprom.

	a.Add to code memory :
	  1.Add .c file to project that convert from webpage(or file) by html2c.exe.
	  
	  2.Include .h file that convert from webpage(or file) by html2c.exe in webpages.c.
	  
	  3.Add file tables to "RAM_WEB_PAGE web_page_table_incode []" in webpages.c.
	  
	b.Add to EEPROM
	  1.Use EEPTOOL.exe to convert web pages to .bin file.
	  
	  2.Write .bin file to EEPROM.
	  
	  3.Plug EEPROM to CS620X Demo Board and reset ,then set MAC,IP,Net mask and Gateway.
	  
	  4.Reset CS620X to active new settings.

5. Add Egi functions(if any) (please refer to api.pdf chapter 10)
  Add Egi functions to "code EGI_FUNC egifuncs[]" in webpages.c.

6.To Display webpage files TABLE , you can set SHOW_FILES_TABLE to 1 in HTTP.H

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -