Skip to content

Commit 5a64f51

Browse files
committed
feat(common): Refactor API and config from example_* to net_connect_*
Added example to net_connect component.
1 parent bd37fc5 commit 5a64f51

20 files changed

+577
-519
lines changed

components/net_connect/CMakeLists.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@ set(srcs "stdin_out.c"
1414
"wifi_connect.c"
1515
"protocol_examples_utils.c")
1616

17-
if(CONFIG_EXAMPLE_PROVIDE_WIFI_CONSOLE_CMD)
17+
if(CONFIG_NET_CONNECT_PROVIDE_WIFI_CONSOLE_CMD)
1818
list(APPEND srcs "console_cmd.c")
1919
endif()
2020

21-
if(CONFIG_EXAMPLE_CONNECT_ETHERNET)
21+
if(CONFIG_NET_CONNECT_CONNECT_ETHERNET)
2222
list(APPEND srcs "eth_connect.c")
2323
endif()
2424

25-
if(CONFIG_EXAMPLE_CONNECT_THREAD)
25+
if(CONFIG_NET_CONNECT_CONNECT_THREAD)
2626
list(APPEND srcs "thread_connect.c")
2727
endif()
2828

29-
if(CONFIG_EXAMPLE_CONNECT_PPP)
29+
if(CONFIG_NET_CONNECT_CONNECT_PPP)
3030
list(APPEND srcs "ppp_connect.c")
3131
endif()
3232

@@ -35,18 +35,18 @@ idf_component_register(SRCS "${srcs}"
3535
INCLUDE_DIRS "include"
3636
PRIV_REQUIRES esp_netif esp_driver_gpio esp_driver_uart esp_wifi vfs console esp_eth openthread)
3737

38-
if(CONFIG_EXAMPLE_PROVIDE_WIFI_CONSOLE_CMD)
38+
if(CONFIG_NET_CONNECT_PROVIDE_WIFI_CONSOLE_CMD)
3939
idf_component_optional_requires(PRIVATE console)
4040
endif()
4141

42-
if(CONFIG_EXAMPLE_CONNECT_ETHERNET)
42+
if(CONFIG_NET_CONNECT_CONNECT_ETHERNET)
4343
idf_component_optional_requires(PUBLIC esp_eth)
4444
endif()
4545

46-
if(CONFIG_EXAMPLE_CONNECT_THREAD)
46+
if(CONFIG_NET_CONNECT_CONNECT_THREAD)
4747
idf_component_optional_requires(PRIVATE openthread)
4848
endif()
4949

50-
if(CONFIG_EXAMPLE_CONNECT_PPP)
50+
if(CONFIG_NET_CONNECT_CONNECT_PPP)
5151
idf_component_optional_requires(PRIVATE esp_tinyusb espressif__esp_tinyusb)
5252
endif()

0 commit comments

Comments
 (0)