-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(wifi_remote): Minor fixes per review
- Loading branch information
1 parent
f47912e
commit ec32275
Showing
5 changed files
with
30 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,5 @@ | ||
# This project serves as a demo to enable using esp-mqtt on ESP platform targets as well as on linux | ||
cmake_minimum_required(VERSION 3.16) | ||
|
||
if("${IDF_TARGET}" STREQUAL "linux") | ||
# For linux-target we have two options: | ||
# - With lwIP (must be defined on command line, e.g. idf.py -DWITH_LWIP=1) | ||
# access networking from linux `tap` interface (TAP networking mode) | ||
# - Without lwIP (must be defined on command line, e.g. idf.py -DWITH_LWIP=0) | ||
# no designated interface, accesses user network via linux/socket sys calls | ||
if(WITH_LWIP STREQUAL 1) | ||
set(EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/examples/common_components/protocol_examples_tapif_io | ||
"../../common_components/linux_compat/esp_timer") | ||
set(COMPONENTS main esp_netif lwip protocol_examples_tapif_io startup esp_hw_support esp_system nvs_flash mqtt esp_timer) | ||
else() | ||
list(APPEND EXTRA_COMPONENT_DIRS | ||
"../../common_components/linux_compat/esp_timer" | ||
"$ENV{IDF_PATH}/examples/protocols/linux_stubs/esp_stubs") | ||
set(COMPONENTS main nvs_flash esp-tls esp_stubs mqtt protocol_examples_common esp_timer) | ||
endif() | ||
endif() | ||
|
||
include($ENV{IDF_PATH}/tools/cmake/project.cmake) | ||
project(esp_mqtt_demo) |