-
Notifications
You must be signed in to change notification settings - Fork 56
feat: Unified Ethernet interface with settings manager and web UI #201
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| idf_component_register(SRCS "snapcast.c" "player.c" | ||
| INCLUDE_DIRS "include" | ||
| REQUIRES libbuffer json libmedian timefilter esp_wifi driver esp_timer) | ||
| REQUIRES libbuffer json libmedian timefilter esp_wifi driver esp_timer network_interface) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,18 @@ | ||
| idf_component_register(SRCS "network_interface.c" "eth_interface.c" "wifi_interface.c" | ||
| set(SRCS "network_interface.c" "wifi_interface.c") | ||
|
|
||
| # Only include Ethernet interface if Ethernet is enabled | ||
| if(CONFIG_SNAPCLIENT_USE_INTERNAL_ETHERNET OR CONFIG_SNAPCLIENT_USE_SPI_ETHERNET) | ||
| list(APPEND SRCS "eth_interface.c") | ||
| endif() | ||
|
|
||
| set(PRIV_DEPS driver esp_wifi esp_eth esp_netif esp_timer nvs_flash improv_wifi settings_manager lwip) | ||
|
|
||
| # ping is only needed when Ethernet is enabled (used by eth_interface.c) | ||
| if(CONFIG_SNAPCLIENT_USE_INTERNAL_ETHERNET OR CONFIG_SNAPCLIENT_USE_SPI_ETHERNET) | ||
| list(APPEND PRIV_DEPS ping) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does this work? https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/build-system.html#when-writing-a-component
You can also use |
||
| endif() | ||
|
|
||
| idf_component_register(SRCS ${SRCS} | ||
| INCLUDE_DIRS "include" | ||
| PRIV_REQUIRES driver esp_wifi esp_eth esp_netif esp_timer nvs_flash improv_wifi) | ||
| PRIV_INCLUDE_DIRS "priv_include" | ||
| PRIV_REQUIRES ${PRIV_DEPS}) | ||
Uh oh!
There was an error while loading. Please reload this page.