资源简介
esp8266物联网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 “lwip/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);
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 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个文件信息
- 上一篇:qt下人脸识别
- 下一篇:MAX修改器动画导入UNITY
相关资源
- STM32+8266+连接云平台源码.zip
- 51单片机程序.zip
- Mixly 的 ESP8266 库
- ESP8266连接ONENET平台传输数据------笔记
- ESP8266与上位机通信代码
- IPV6子网划分工具
- tcp ipv6 pcap 数据包
- IPv6下网络攻击的研究与实现
- 米思齐esp8266wifi库.zip
- 微软官网修复IPv6的工具包合集
- C51_ESP8266_rc522.rar
- esp8266_modules_libraries esp8266相关模组的
- ESP8266 PWM源文件
- ESP8266 Homekit 双路继电器模块包
- 15.Aliyun.rar
- ESP8266_NONOS_SDK v2.2 配置文件已修改
- ESP8266_NONOS_SDK-2.2.0
- 基于概率神经网络的IPv6入侵检测技术
- ESP8266API参考手册
- WIFI 芯片ESP8266 开发视频教程基础篇
- 阿里云IoT物联网平台-ESP8266 MQTT 1路开
- esp8266气象站彩色屏幕
- ESP8266 MQTT SSL/TLS 阿里物联网套件 百度
- ESP8266与STM32串口实现MODBUS TCP Slaver
- 将ESP8266刷成可以使用网页配置
- [ESP8266 ]WIFISocket_PCB电路图
- ipv4向ipv6过渡技术
- 使用WinPcap抓取ipv4和ipv6数据包
- 基于Windows的IPv6实验环境搭建及测试
- Openwrt/LEDE 无线中继支持IPV4和IPV6
评论
共有 条评论