feat(examples): Support simple PPP connect in multinet example

This commit is contained in:
David Cermak
2023-06-22 17:27:16 +02:00
parent 00d7c40848
commit 1c20328dcf
10 changed files with 302 additions and 114 deletions

View File

@@ -1,2 +1,13 @@
idf_component_register(SRCS ethernet_netif.c multi_netif_main.c wifi_connect.c check_connection.c ppp_connect.c
set(ppp_connect_srcs ppp_connect.c)
if(CONFIG_EXAMPLE_PPP_CONNECT_ESP_MODEM)
list(APPEND ppp_connect_srcs ppp_connect_esp_modem.c)
else()
list(APPEND ppp_connect_srcs ppp_connect_simple.c)
endif()
idf_component_register(SRCS multi_netif_main.c
check_connection.c
wifi_connect.c
ethernet_connect.c
${ppp_connect_srcs}
INCLUDE_DIRS ".")