-
Notifications
You must be signed in to change notification settings - Fork 2.1k
cpu/esp32: esp_wifi netdev driver #10762
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
078c47d
cpu/esp32: fixes frame size handling in esp_wifi
gschorcht 2c97377
cpu/esp32: fixes NETOPT_IS_WIRED in esp_wifi
gschorcht d24d73d
cpu/esp32: fixes NETOPT_LINK_CONNECTED in esp_wifi
gschorcht 3ef35e1
cpu/esp32: use static WiFi config in esp_wifi
gschorcht 8a1da21
cpu/esp32: fixes serious memory leak in esp_wifi
gschorcht 2c3ac91
cpu/esp32: move wifi_connect to event handler
gschorcht f4cacc1
cpu/esp32: improved debug message in esp_wifi
gschorcht 90e9c95
cpu/esp32: registration of RX callback in esp_wifi
gschorcht c9684af
cpu/esp32: automatic reconnect after disconnect
gschorcht c0d4706
cpu/esp32: fix of event types in esp_wifi
gschorcht e83a867
cpu/esp32: cleanup esp_wifi config parameters
gschorcht 1cf415a
cpu/esp32: doc improvements in esp_wifi
gschorcht cb37288
cpu/esp32: redundant README.md removed
gschorcht 7754a34
cpu/esp_common: doc fixes related to esp_wifi
gschorcht 6caead7
cpu/esp32: esp-wifi related doc changes
gschorcht f788928
cpu/esp32: fix esp_wifi stability issues
gschorcht 6a99e86
cpu/esp32: fix stability issues of esp_wifi
gschorcht 5bb05f0
cpu/esp32: esp-wifi related doc changes
gschorcht File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,12 +7,46 @@ | |
| */ | ||
|
|
||
| /** | ||
| * @defgroup cpu_esp32_esp_wifi ESP WiFi netdev interface | ||
| * @defgroup cpu_esp32_esp_wifi ESP32 WiFi netdev interface | ||
| * @ingroup cpu_esp32 | ||
| * @brief WiFi AP-based network device driver | ||
| * | ||
| * This module realizes a netdev interface using the built-in | ||
| * WiFi module and AP infrastructure. | ||
| * @brief Network device driver for the ESP32 WiFi interface | ||
| * | ||
| * @author Gunar Schorcht <[email protected]> | ||
|
|
||
| This module realizes a `netdev` interface for the built-in WiFi interface | ||
| of ESP32. To enable the WiFi interface, module `esp_wifi` has to be used. | ||
|
|
||
| @note Due to symbol conflicts with the `crypto` and `hash` modules of RIOT | ||
| in module `esp_idf_wpa_supplicant_crypto`, which is required by module | ||
| `esp_wifi`, `esp_wifi` cannot be used for applications that use these modules. | ||
| Therefore, module `esp_wifi` is not automatically enabled when module | ||
| `netdev_default` is used. Instead, if necessary, the application has to add | ||
| the module `esp_wifi` in the Makefile. | ||
|
|
||
| ``` | ||
| USEMODULE += esp_wifi | ||
| ``` | ||
|
|
||
| Furthermore, the following configuration parameters have to be defined: | ||
|
|
||
| Configuration Parameter | Description | ||
| ------------------------|------------ | ||
| ESP_WIFI_SSID | SSID of the AP to be used. | ||
| ESP_WIFI_PASS | Passphrase used for the AP as clear text (max. 64 chars). | ||
| ESP_WIFI_STACKSIZE | Stack size used for the WiFi netdev driver thread. | ||
|
|
||
| These configuration parameter definitions, as well as enabling the `esp_wifi` | ||
| module, can be done either in the makefile of the project or at make command | ||
| line, e.g.: | ||
|
|
||
| ``` | ||
| USEMODULE=esp_wifi \ | ||
| CFLAGS='-DESP_WIFI_SSID=\"MySSID\" -DESP_WIFI_PASS=\"MyPassphrase\"' \ | ||
| make -C examples/gnrc_networking BOARD=... | ||
| ``` | ||
|
|
||
| @note The Wifi network interface (module `esp_wifi`) and the | ||
| \ref esp32_esp_now_network_interface "ESP-NOW network interface" (module `esp_now`) | ||
| can be used simultaneously, for example, to realize a border router for | ||
| a mesh network which uses ESP-NOW. | ||
| */ | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.