mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
doc: Rearrange wifi & ethernet docs into a common "network" doc
This commit is contained in:
parent
5436be94b6
commit
6a4955ef74
@ -87,6 +87,8 @@ INPUT = \
|
||||
../../components/soc/esp32/include/soc/touch_channel.h \
|
||||
../../components/soc/esp32/include/soc/uart_channel.h \
|
||||
../../components/soc/esp32/include/soc/rtc_gpio_channel.h \
|
||||
## tcpip_adapter - API Reference
|
||||
../../components/tcpip_adapter/include/tcpip_adapter.h \
|
||||
##
|
||||
## Protocols - API Reference
|
||||
##
|
||||
|
@ -1,7 +1,9 @@
|
||||
ESP-MESH
|
||||
========
|
||||
|
||||
This guide provides information regarding the ESP-MESH protocol. Please see the :doc:`MESH API Reference<../api-reference/mesh/esp_mesh>` for more information about API usage.
|
||||
This guide provides information regarding the ESP-MESH protocol. Please see the
|
||||
:doc:`MESH API Reference<../api-reference/network/esp_mesh>` for more information
|
||||
about API usage.
|
||||
|
||||
.. ------------------------------- Overview -----------------------------------
|
||||
|
||||
|
@ -103,7 +103,7 @@ The 8-bit subtype field is specific to a given partition type. esp-idf currently
|
||||
- nvs (2) is for the :doc:`Non-Volatile Storage (NVS) API <../api-reference/storage/nvs_flash>`.
|
||||
|
||||
- NVS is used to store per-device PHY calibration data (different to initialisation data).
|
||||
- NVS is used to store WiFi data if the :doc:`esp_wifi_set_storage(WIFI_STORAGE_FLASH) <../api-reference/wifi/esp_wifi>` initialisation function is used.
|
||||
- NVS is used to store WiFi data if the :doc:`esp_wifi_set_storage(WIFI_STORAGE_FLASH) <../api-reference/network/esp_wifi>` initialisation function is used.
|
||||
- The NVS API can also be used for other application data.
|
||||
- It is strongly recommended that you include an NVS partition of at least 0x3000 bytes in your project.
|
||||
- If using NVS API to store a lot of data, increase the NVS partition size from the default 0x6000 bytes.
|
||||
|
@ -1,10 +0,0 @@
|
||||
Ethernet API
|
||||
************
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 1
|
||||
|
||||
Ethernet <esp_eth>
|
||||
|
||||
|
||||
Example code for this API section is provided in :example:`ethernet` directory of ESP-IDF examples.
|
@ -5,10 +5,8 @@ API Reference
|
||||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
Wi-Fi <wifi/index>
|
||||
Mesh <mesh/index>
|
||||
Bluetooth <bluetooth/index>
|
||||
Ethernet <ethernet/index>
|
||||
Networking <network/index>
|
||||
Peripherals <peripherals/index>
|
||||
Protocols <protocols/index>
|
||||
Provisioning <provisioning/index>
|
||||
|
@ -1,9 +0,0 @@
|
||||
Mesh API
|
||||
*********
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 1
|
||||
|
||||
ESP Mesh <esp_mesh>
|
||||
|
||||
Example code for this API section is provided in :example:`mesh` directory of ESP-IDF examples.
|
@ -1,4 +1,4 @@
|
||||
ETHERNET
|
||||
Ethernet
|
||||
========
|
||||
|
||||
Application Example
|
42
docs/en/api-reference/network/index.rst
Normal file
42
docs/en/api-reference/network/index.rst
Normal file
@ -0,0 +1,42 @@
|
||||
Networking APIs
|
||||
***************
|
||||
|
||||
Wi-Fi
|
||||
=====
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 1
|
||||
|
||||
Wi-Fi <esp_wifi>
|
||||
Smart Config <esp_smartconfig>
|
||||
ESP-NOW <esp_now>
|
||||
ESP Mesh <esp_mesh>
|
||||
|
||||
Example code for the Wi-Fi API is provided in :example:`wifi` directory of ESP-IDF examples.
|
||||
|
||||
Example code for ESP Mesh is provided in :example:`mesh` directory of ESP-IDF examples.
|
||||
|
||||
Ethernet
|
||||
========
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 1
|
||||
|
||||
Ethernet <esp_eth>
|
||||
|
||||
Example code for the Ethernet API is provided in :example:`ethernet` directory of ESP-IDF examples.
|
||||
|
||||
IP Network Layer
|
||||
================
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 1
|
||||
|
||||
TCP/IP Adapter <tcpip_adapter.rst>
|
||||
|
||||
Example code for TCP/IP socket APIs is provided in :example:`protocols/sockets` directory of ESP-IDF examples.
|
||||
|
||||
Application Layer
|
||||
=================
|
||||
|
||||
Documentation for application layer network protocols (above the IP network layer) is provided in :doc:`../protocols/index`.
|
8
docs/en/api-reference/network/lwip.rst
Normal file
8
docs/en/api-reference/network/lwip.rst
Normal file
@ -0,0 +1,8 @@
|
||||
lwIP TCP/IP API
|
||||
***************
|
||||
|
||||
Application Example
|
||||
-------------------
|
||||
|
||||
Example code for TCP/IP socket APIs is provided in :example:`protocols/sockets` directory of ESP-IDF examples.
|
||||
|
20
docs/en/api-reference/network/tcpip_adapter.rst
Normal file
20
docs/en/api-reference/network/tcpip_adapter.rst
Normal file
@ -0,0 +1,20 @@
|
||||
TCP/IP Adapter
|
||||
==============
|
||||
|
||||
The purpose of TCP/IP Adapter library is twofold. First, it provides an abstraction layer for the application on top of the IP stack, to allow applications to choose between IP stacks in the future. Second, the APIs it provides are thread safe, even if the underlying IP stack APIs are not.
|
||||
|
||||
In many cases, application does not need to call TCP/IP Adapter APIs itself. A few cases when such calls are needed are related to :doc:`event handling <../../api-guides/event-handling>`.
|
||||
|
||||
|
||||
The aim of this adapter is to provide an abstraction layer between the TCP/IP stack and the network interface layer (currently Wi-Fi or Ethernet), and general network interface management.
|
||||
|
||||
ESP-IDF currently implements TCP/IP Adapter for the :doc:`lwIP <lwip>` TCP/IP stack only. However, the adapter itself is TCP/IP implementation agnostic and different implementations are possible.
|
||||
|
||||
Some TCP/IP Adapter API functions are intended to be called by application code, for example to get/set interface IP addresses, configure DHCP. Other functions are intended for internal ESP-IDF use by the network driver layer.
|
||||
|
||||
|
||||
API Reference
|
||||
-------------
|
||||
|
||||
.. include:: /_build/inc/tcpip_adapter.inc
|
||||
.. include:: /_build/inc/tcpip_adapter_lwip.inc
|
@ -1,5 +1,5 @@
|
||||
Protocols API
|
||||
*************
|
||||
Application Protocols
|
||||
*********************
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 1
|
||||
@ -14,3 +14,9 @@ Protocols API
|
||||
Modbus slave <modbus>
|
||||
|
||||
Example code for this API section is provided in :example:`protocols` directory of ESP-IDF examples.
|
||||
|
||||
|
||||
IP Network Layer
|
||||
================
|
||||
|
||||
Documentation for IP Network Layer protocols (below the Application Protocol layer) is provided in :doc:`../network/index`.
|
||||
|
@ -1,12 +0,0 @@
|
||||
Wi-Fi API
|
||||
*********
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 1
|
||||
|
||||
Wi-Fi <esp_wifi>
|
||||
Smart Config <esp_smartconfig>
|
||||
ESPNOW <esp_now>
|
||||
|
||||
|
||||
Example code for this API section is provided in :example:`wifi` directory of ESP-IDF examples.
|
@ -1 +0,0 @@
|
||||
.. include:: ../../../en/api-reference/ethernet/esp_eth.rst
|
@ -1 +0,0 @@
|
||||
.. include:: ../../../en/api-reference/ethernet/index.rst
|
@ -1 +0,0 @@
|
||||
.. include:: ../../../en/api-reference/mesh/esp_mesh.rst
|
@ -1 +0,0 @@
|
||||
.. include:: ../../../en/api-reference/mesh/index.rst
|
1
docs/zh_CN/api-reference/network/esp_eth.rst
Normal file
1
docs/zh_CN/api-reference/network/esp_eth.rst
Normal file
@ -0,0 +1 @@
|
||||
.. include:: ../../../en/api-reference/network/esp_eth.rst
|
1
docs/zh_CN/api-reference/network/esp_mesh.rst
Normal file
1
docs/zh_CN/api-reference/network/esp_mesh.rst
Normal file
@ -0,0 +1 @@
|
||||
.. include:: ../../../en/api-reference/network/esp_mesh.rst
|
1
docs/zh_CN/api-reference/network/esp_now.rst
Normal file
1
docs/zh_CN/api-reference/network/esp_now.rst
Normal file
@ -0,0 +1 @@
|
||||
.. include:: ../../../en/api-reference/network/esp_now.rst
|
1
docs/zh_CN/api-reference/network/esp_smartconfig.rst
Normal file
1
docs/zh_CN/api-reference/network/esp_smartconfig.rst
Normal file
@ -0,0 +1 @@
|
||||
.. include:: ../../../en/api-reference/network/esp_smartconfig.rst
|
1
docs/zh_CN/api-reference/network/esp_wifi.rst
Normal file
1
docs/zh_CN/api-reference/network/esp_wifi.rst
Normal file
@ -0,0 +1 @@
|
||||
.. include:: ../../../en/api-reference/network/esp_wifi.rst
|
1
docs/zh_CN/api-reference/network/index.rst
Normal file
1
docs/zh_CN/api-reference/network/index.rst
Normal file
@ -0,0 +1 @@
|
||||
.. include:: ../../../en/api-reference/network/index.rst
|
@ -1 +0,0 @@
|
||||
.. include:: ../../../en/api-reference/wifi/esp_now.rst
|
@ -1 +0,0 @@
|
||||
.. include:: ../../../en/api-reference/wifi/esp_smartconfig.rst
|
@ -1 +0,0 @@
|
||||
.. include:: ../../../en/api-reference/wifi/esp_wifi.rst
|
@ -1 +0,0 @@
|
||||
.. include:: ../../../en/api-reference/wifi/index.rst
|
Loading…
Reference in New Issue
Block a user