資源簡(jiǎn)介
esp8266物聯(lián)網(wǎng)WiFi RTOS SDK 搭建IPV6 client和listened

代碼片段和文件信息
/*
?*?ESPRSSIF?MIT?License
?*
?*?Copyright?(c)?2015?
?*
?*?Permission?is?hereby?granted?for?use?on?ESPRESSIF?SYSTEMS?ESP8266?only?in?which?case
?*?it?is?free?of?charge?to?any?person?obtaining?a?copy?of?this?software?and?associated
?*?documentation?files?(the?“Software“)?to?deal?in?the?Software?without?restriction?including
?*?without?limitation?the?rights?to?use?copy?modify?merge?publish?distribute?sublicense
?*?and/or?sell?copies?of?the?Software?and?to?permit?persons?to?whom?the?Software?is?furnished
?*?to?do?so?subject?to?the?following?conditions:
?*
?*?The?above?copyright?notice?and?this?permission?notice?shall?be?included?in?all?copies?or
?*?substantial?portions?of?the?Software.
?*
?*?THE?SOFTWARE?IS?PROVIDED?“AS?IS“?WITHOUT?WARRANTY?OF?ANY?KIND?EXPRESS?OR
?*?IMPLIED?INCLUDING?BUT?NOT?LIMITED?TO?THE?WARRANTIES?OF?MERCHANTABILITY?FITNESS
?*?FOR?A?PARTICULAR?PURPOSE?AND?NONINFRINGEMENT.?IN?NO?EVENT?SHALL?THE?AUTHORS?OR
?*?COPYRIGHT?HOLDERS?BE?LIABLE?FOR?ANY?CLAIM?DAMAGES?OR?OTHER?LIABILITY?WHETHER
?*?IN?AN?ACTION?OF?CONTRACT?TORT?OR?OTHERWISE?ARISING?FROM?OUT?OF?OR?IN
?*?CONNECTION?WITH?THE?SOFTWARE?OR?THE?USE?OR?OTHER?DEALINGS?IN?THE?SOFTWARE.
?*
?*/
#include?“esp_common.h“
#include?“espressif/esp_sta.h“?/*?Wifi?Station?*/
#include?“espressif/esp_wifi.h“
#include?“l(fā)wip/lwip/netif.h“
#include?“uart.h“
extern?void?user_task();
/******************************************************************************
?*?FunctionName?:?user_rf_cal_sector_set
?*?Description??:?SDK?just?reversed?4?sectors?used?for?rf?init?data?and?paramters.
?*????????????????We?add?this?function?to?force?users?to?set?rf?cal?sector?since
?*????????????????we?don‘t?know?which?sector?is?free?in?user‘s?application.
?*????????????????sector?map?for?last?several?sectors?:?ABCCC
?*????????????????A?:?rf?cal
?*????????????????B?:?rf?init?data
?*????????????????C?:?sdk?parameters
?*?Parameters???:?none
?*?Returns??????:?rf?cal?sector
?*******************************************************************************/
uint32?user_rf_cal_sector_set(void)?{
flash_size_map?size_map?=?system_get_flash_size_map();
uint32?rf_cal_sec?=?0;
switch?(size_map)?{
case?FLASH_SIZE_4M_MAP_256_256:
rf_cal_sec?=?128?-?5;
break;
case?FLASH_SIZE_8M_MAP_512_512:
rf_cal_sec?=?256?-?5;
break;
case?FLASH_SIZE_16M_MAP_512_512:
case?FLASH_SIZE_16M_MAP_1024_1024:
rf_cal_sec?=?512?-?5;
break;
case?FLASH_SIZE_32M_MAP_512_512:
case?FLASH_SIZE_32M_MAP_1024_1024:
rf_cal_sec?=?1024?-?5;
break;
case?FLASH_SIZE_64M_MAP_1024_1024:
rf_cal_sec?=?2048?-?5;
break;
case?FLASH_SIZE_128M_MAP_1024_1024:
rf_cal_sec?=?4096?-?5;
break;
default:
rf_cal_sec?=?0;
break;
}
return?rf_cal_sec;
}
void?manual_netif_setup()?{
????//?First?find?our?network?interface
????struct?netif?*interface?=?netif_find(“en0“);?
?
????//?Check?if?it?is?up?and?set?it?up
????bool?is_interface_up?=?netif_is_up(interface);
?
?
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-03-30?11:32??IPv6-ESP8266-master\
?????文件????????1210??2018-03-30?11:32??IPv6-ESP8266-master\LICENSE
?????文件????????8454??2018-03-30?11:32??IPv6-ESP8266-master\README.md
?????目錄???????????0??2018-03-30?11:32??IPv6-ESP8266-master\esp-client\
?????文件??????????62??2018-03-30?11:32??IPv6-ESP8266-master\esp-client\.clang_complete
?????文件???????????8??2018-03-30?11:32??IPv6-ESP8266-master\esp-client\.gitignore
?????文件????????3011??2018-03-30?11:32??IPv6-ESP8266-master\esp-client\Makefile
?????文件?????????254??2018-03-30?11:32??IPv6-ESP8266-master\esp-client\build.sh
?????文件????????3573??2018-03-30?11:32??IPv6-ESP8266-master\esp-client\gen_misc.bat
?????文件????????4236??2018-03-30?11:32??IPv6-ESP8266-master\esp-client\gen_misc.sh
?????目錄???????????0??2018-03-30?11:32??IPv6-ESP8266-master\esp-client\include\
?????文件????????1297??2018-03-30?11:32??IPv6-ESP8266-master\esp-client\include\user_config.h
?????文件????????1439??2018-03-30?11:32??IPv6-ESP8266-master\esp-client\readme.txt
?????目錄???????????0??2018-03-30?11:32??IPv6-ESP8266-master\esp-client\user\
?????文件????????1444??2018-03-30?11:32??IPv6-ESP8266-master\esp-client\user\Makefile
?????文件????????4772??2018-03-30?11:32??IPv6-ESP8266-master\esp-client\user\user_main.c
?????目錄???????????0??2018-03-30?11:32??IPv6-ESP8266-master\esp-client\wifi_lib\
?????文件????????1556??2018-03-30?11:32??IPv6-ESP8266-master\esp-client\wifi_lib\Makefile
?????文件????????2109??2018-03-30?11:32??IPv6-ESP8266-master\esp-client\wifi_lib\wifi_task.c
?????目錄???????????0??2018-03-30?11:32??IPv6-ESP8266-master\esp-ipv6-listener\
?????文件??????????20??2018-03-30?11:32??IPv6-ESP8266-master\esp-ipv6-listener\.gitignore
?????文件????????7915??2018-03-30?11:32??IPv6-ESP8266-master\esp-ipv6-listener\Cargo.lock
?????文件?????????156??2018-03-30?11:32??IPv6-ESP8266-master\esp-ipv6-listener\Cargo.toml
?????文件?????????459??2018-03-30?11:32??IPv6-ESP8266-master\esp-ipv6-listener\README.md
?????目錄???????????0??2018-03-30?11:32??IPv6-ESP8266-master\esp-ipv6-listener\src\
?????文件????????2698??2018-03-30?11:32??IPv6-ESP8266-master\esp-ipv6-listener\src\main.rs
?????目錄???????????0??2018-03-30?11:32??IPv6-ESP8266-master\img\
?????文件???????15012??2018-03-30?11:32??IPv6-ESP8266-master\img\Esp-ipv6-aufbau.jpeg
?????目錄???????????0??2018-03-30?11:32??IPv6-ESP8266-master\wireshark-dumps\
?????文件???????14672??2018-03-30?11:32??IPv6-ESP8266-master\wireshark-dumps\wireshark-cisco-ipv6.pcapng
?????文件????????4632??2018-03-30?11:32??IPv6-ESP8266-master\wireshark-dumps\wireshark-esp8266-cisco.pcapng
............此處省略0個(gè)文件信息
評(píng)論
共有 條評(píng)論