forked from espressif/ESP8266_RTOS_SDK
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(provisioning): Modify component and example for ESP8266
- Loading branch information
Showing
51 changed files
with
51 additions
and
3,279 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,23 @@ | ||
if(CONFIG_ENABLE_UNIFIED_PROVISIONING) | ||
set(srcs "src/wifi_config.c" | ||
"src/wifi_scan.c" | ||
"src/manager.c" | ||
"src/handlers.c" | ||
"src/scheme_softap.c" | ||
"src/scheme_console.c" | ||
"proto-c/wifi_config.pb-c.c" | ||
"proto-c/wifi_scan.pb-c.c" | ||
"proto-c/wifi_constants.pb-c.c") | ||
|
||
if(CONFIG_BT_ENABLED) | ||
if(CONFIG_BT_BLUEDROID_ENABLED OR CONFIG_BT_NIMBLE_ENABLED) | ||
list(APPEND srcs | ||
"src/scheme_ble.c") | ||
endif() | ||
endif() | ||
|
||
idf_component_register(SRCS "${srcs}" | ||
INCLUDE_DIRS include | ||
PRIV_INCLUDE_DIRS src proto-c ../protocomm/proto-c | ||
REQUIRES lwip protocomm | ||
PRIV_REQUIRES protobuf-c bt mdns json esp_timer) | ||
PRIV_REQUIRES protobuf-c mdns json) | ||
|
||
# To avoid warning for strncpy | ||
set_source_files_properties(src/handlers.c src/scheme_softap.c | ||
PROPERTIES COMPILE_FLAGS | ||
-Wno-stringop-truncation | ||
) | ||
|
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,13 +1,11 @@ | ||
COMPONENT_SRCDIRS := | ||
COMPONENT_ADD_INCLUDEDIRS := | ||
|
||
ifdef CONFIG_ENABLE_UNIFIED_PROVISIONING | ||
COMPONENT_SRCDIRS := src proto-c | ||
COMPONENT_ADD_INCLUDEDIRS := include | ||
COMPONENT_PRIV_INCLUDEDIRS := src proto-c ../protocomm/proto-c/ | ||
|
||
# To avoid warning for strncpy in "handlers.c" and "scheme_softap.c" | ||
CPPFLAGS += -Wno-stringop-truncation | ||
|
||
ifndef CONFIG_BT_BLUEDROID_ENABLED | ||
ifndef CONFIG_BT_NIMBLE_ENABLED | ||
COMPONENT_OBJEXCLUDE := src/scheme_ble.o | ||
endif | ||
endif | ||
|
82 changes: 0 additions & 82 deletions
82
components/wifi_provisioning/include/wifi_provisioning/scheme_ble.h
This file was deleted.
Oops, something went wrong.
34 changes: 0 additions & 34 deletions
34
components/wifi_provisioning/include/wifi_provisioning/scheme_console.h
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.