Merge branch 'bugfix/fix_broken_example_link' into 'master'

doc:fix icmp initialization and broken example links

Closes IDFGH-2563

See merge request espressif/esp-idf!7402
This commit is contained in:
Angus Gratton 2020-01-23 14:32:55 +08:00
commit c1ab87b580
7 changed files with 21 additions and 16 deletions

View File

@ -141,9 +141,9 @@ ESP-NETIF programmer's manual
Please refer to the example section for basic initialization of default interfaces:
- WiFi Station: :example:`examples/wifi/getting_started/station/main/station_example_main.c`
- WiFi Access Point: :example:`examples/wifi/getting_started/softAP/main/softap_example_main.c`
- Ethernet :example:`examples/ethernet/basic/main/ethernet_example_main.c`
- WiFi Station: :example:`wifi/getting_started/station/main/station_example_main.c`
- WiFi Access Point: :example:`wifi/getting_started/softAP/main/softap_example_main.c`
- Ethernet: :example:`ethernet/basic/main/ethernet_example_main.c`
For more specific cases please consult this guide: :doc:`/api-reference/network/esp_netif_driver`.

View File

@ -31,9 +31,9 @@ Network interface instance shall be explicitly constructed for the :doc:`/api-re
For example initialization code for WiFi has to explicitly call ``esp_netif_create_default_wifi_sta();`` or ``esp_netif_create_default_wifi_ap();`` after the TCP/IP stack and the event loop have been initialized.
Please consult an example initialization code for these three interfaces:
- WiFi Station: :example:`examples/wifi/getting_started/station/main/station_example_main.c`
- WiFi Access Point: :example:`examples/wifi/getting_started/softAP/main/softap_example_main.c`
- Ethernet :example:`examples/ethernet/basic/main/ethernet_example_main.c`
- WiFi Station: :example:`wifi/getting_started/station/main/station_example_main.c`
- WiFi Access Point: :example:`wifi/getting_started/softAP/main/softap_example_main.c`
- Ethernet: :example:`ethernet/basic/main/ethernet_example_main.c`
Replacing other tcpip_adapter API

View File

@ -21,11 +21,11 @@ Internal asio settings for ESP include
Application Example
-------------------
ESP examples are based on standard asio :example:`examples/protocols/asio`:
ESP examples are based on standard asio :example:`protocols/asio`:
- :example:`examples/protocols/asio/udp_echo_server`
- :example:`examples/protocols/asio/tcp_echo_server`
- :example:`examples/protocols/asio/chat_client`
- :example:`examples/protocols/asio/chat_server`
- :example:`protocols/asio/udp_echo_server`
- :example:`protocols/asio/tcp_echo_server`
- :example:`protocols/asio/chat_client`
- :example:`protocols/asio/chat_server`
Please refer to the specific example README.md for details

View File

@ -65,6 +65,11 @@ Example method to create a new ping session and register callbacks:
void initialize_ping()
{
/* convert URL to IP address */
ip_addr_t target_addr;
struct addrinfo hint;
struct addrinfo *res = NULL;
memset(&hint, 0, sizeof(hint));
memset(&target_addr, 0, sizeof(target_addr));
getaddrinfo("www.espressif.com", NULL, &hint, &res) == 0);
struct in_addr addr4 = ((struct sockaddr_in *) (res->ai_addr))->sin_addr;
inet_addr_to_ip4addr(ip_2_ip4(&target_addr), &addr4);

View File

@ -91,7 +91,7 @@ in CMake::
spiffs_create_partition_image(my_spiffs_partition my_folder DEPENDS dep)
+For an example, see :example:`examples/storage/spiffsgen>`.
+For an example, see :example:`storage/spiffsgen`.
mkspiffs

View File

@ -32,9 +32,9 @@ TCP/IP 适配器静态定义了三个接口:
请参阅这三个接口的初始化代码示例:
- Wi-Fi Station:example:`examples/wifi/getting_started/station/main/station_example_main.c`
- Wi-Fi AP:example:`examples/wifi/getting_started/softAP/main/softap_example_main.c`
- 以太网 :example:`examples/ethernet/basic/main/ethernet_example_main.c`
- Wi-Fi Station: :example:`wifi/getting_started/station/main/station_example_main.c`
- Wi-Fi AP: :example:`wifi/getting_started/softAP/main/softap_example_main.c`
- 以太网: :example:`ethernet/basic/main/ethernet_example_main.c`
更换其他 tcpip_adapter API

View File

@ -87,7 +87,7 @@ Make 构建系统和 CMake 构建系统结构有所不同,请注意以下几
spiffs_create_partition_image(my_spiffs_partition my_folder DEPENDS dep)
请参考 :example:`examples/storage/spiffsgen>`,查看示例。
请参考 :example:`storage/spiffsgen`,查看示例。
mkspiffs
^^^^^^^^^^^