没有合适的资源?快使用搜索试试~ 我知道了~
首页esp32 idf 手册 pdf版
esp32 idf 手册 pdf版
需积分: 50 47 下载量 6 浏览量
更新于2023-05-24
评论
收藏 12.62MB PDF 举报
乐鑫提供的esp32 idf 3.1 api文档是html的,这个是pdf的
资源详情
资源评论
资源推荐
API Reference
Wi-Fi
o Wi-Fi
o Smart Config
o ESPNOW
Mesh
o ESP Mesh
Bluetooth
o Bluetooth Controller && VHCI
o Bluetooth Common
o Bluetooth LE
o Bluetooth Classic
Ethernet
o Ethernet
Peripherals
o ADC
o DAC
o GPIO (including RTC low power I/O)
o I2C
o I2S
o LED Control
o MCPWM
o Pulse Counter
o Remote Control
o SDMMC Host
o SD SPI Host
o SDIO Slave
o Sigma-delta Modulation
o SPI Master
o SPI Slave
o Timer
o Touch Sensor
o UART
Protocols
o mDNS
o ESP-TLS
o HTTP Client
Storage
o SPI Flash and Partition APIs
o SD/SDIO/MMC Driver
o Non-Volatile Storage
o NVS Partition Generation Utility
o Virtual Filesystem
o FAT Filesystem
o Wear Levelling
o SPIFFS Filesystem
System
o FreeRTOS
o FreeRTOS Additions
o Heap Memory Allocation
o Heap Memory Debugging
o Interrupt Allocation
o Watchdogs
o Inter-Processor Call
o High Resolution Timer
o Logging
o Application Level Tracing
o Power Management
o Sleep Modes
o Base MAC address
o Over The Air Updates (OTA)
o ESP pthread
o Error Codes and Helper Functions
Configuration Options
o Introduction
o Using sdkconfig.defaults
o Configuration Options Reference
o Customisations
Error Codes Reference
Wi-Fi
Introduction
The WiFi libraries provide support for configuring and monitoring the ESP32
WiFi networking functionality. This includes configuration for:
Station mode (aka STA mode or WiFi client mode). ESP32 connects to an access
point.
AP mode (aka Soft-AP mode or Access Point mode). Stations connect to the
ESP32.
Combined AP-STA mode (ESP32 is concurrently an access point and a station
connected to another access point).
Various security modes for the above (WPA, WPA2, WEP, etc.)
Scanning for access points (active & passive scanning).
Promiscuous mode monitoring of IEEE802.11 WiFi packets.
Application Examples
See wifi directory of ESP-IDF examples that contains the following
applications:
Simple application showing how to connect ESP32 module to an Access Point
- esp-idf-template.
Using power save mode of Wi-Fi - wifi/power_save.
API Reference
Header File
esp32/include/esp_wifi.h
Functions
esp_err_tesp_wifi_init(constwifi_init_config_t *config)
Init WiFi Alloc resource for WiFi driver, such as WiFi control structure,
RX/TX buffer, WiFi NVS structure etc, this WiFi also start WiFi task.
Attention
1. This API must be called before all other WiFi API can be called
Attention
2. Always use WIFI_INIT_CONFIG_DEFAULT macro to init the config to default
values, this can guarantee all the fields got correct value when more fields are
added into wifi_init_config_t in future release. If you want to set your owner initial
values, overwrite the default values which are set by
WIFI_INIT_CONFIG_DEFAULT, please be notified that the field ‘magic’
of wifi_init_config_t should always be WIFI_INIT_CONFIG_MAGIC!
Return
ESP_OK: succeed
ESP_ERR_NO_MEM: out of memory
others: refer to error code esp_err.h
Parameters
config : pointer to WiFi init configuration structure; can point to a temporary
variable.
esp_err_tesp_wifi_deinit(void)
Deinit WiFi Free all resource allocated in esp_wifi_init and stop WiFi
task.
Attention
1. This API should be called if you want to remove WiFi driver from the system
Return
ESP_OK: succeed
esp_err_tesp_wifi_set_mode(wifi_mode_tmode)
Set the WiFi operating mode.
Set the WiFi operating mode as station, soft-AP or station+soft-AP, The
default mode is soft-AP mode.
Return
ESP_OK: succeed
ESP_ERR_WIFI_NOT_INIT: WiFi is not initialized by esp_wifi_init
ESP_ERR_INVALID_ARG: invalid argument
others: refer to error code in esp_err.h
Parameters
mode : WiFi operating mode
esp_err_tesp_wifi_get_mode(wifi_mode_t *mode)
Get current operating mode of WiFi.
Return
ESP_OK: succeed
ESP_ERR_WIFI_NOT_INIT: WiFi is not initialized by esp_wifi_init
ESP_ERR_INVALID_ARG: invalid argument
Parameters
mode : store current WiFi mode
esp_err_tesp_wifi_start(void)
Start WiFi according to current configuration If mode is
WIFI_MODE_STA, it create station control block and start station If
mode is WIFI_MODE_AP, it create soft-AP control block and start
soft-AP If mode is WIFI_MODE_APSTA, it create soft-AP and station
control block and start soft-AP and station.
Return
ESP_OK: succeed
ESP_ERR_WIFI_NOT_INIT: WiFi is not initialized by esp_wifi_init
ESP_ERR_INVALID_ARG: invalid argument
ESP_ERR_NO_MEM: out of memory
ESP_ERR_WIFI_CONN: WiFi internal error, station or soft-AP control block
wrong
剩余1299页未读,继续阅读
sa-lp
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- zigbee-cluster-library-specification
- JSBSim Reference Manual
- c++校园超市商品信息管理系统课程设计说明书(含源代码) (2).pdf
- 建筑供配电系统相关课件.pptx
- 企业管理规章制度及管理模式.doc
- vb打开摄像头.doc
- 云计算-可信计算中认证协议改进方案.pdf
- [详细完整版]单片机编程4.ppt
- c语言常用算法.pdf
- c++经典程序代码大全.pdf
- 单片机数字时钟资料.doc
- 11项目管理前沿1.0.pptx
- 基于ssm的“魅力”繁峙宣传网站的设计与实现论文.doc
- 智慧交通综合解决方案.pptx
- 建筑防潮设计-PowerPointPresentati.pptx
- SPC统计过程控制程序.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0