-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(console): Added support to join pre-configured network
- Loading branch information
1 parent
a363bee
commit de1a6d2
Showing
5 changed files
with
52 additions
and
14 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,4 +1,8 @@ | ||
idf_component_register(SRCS "console_wifi.c" | ||
INCLUDE_DIRS "." | ||
PRIV_REQUIRES esp_netif console esp_wifi | ||
WHOLE_ARCHIVE) | ||
INCLUDE_DIRS "include" | ||
REQUIRES lwip | ||
PRIV_REQUIRES esp_netif console esp_wifi esp_timer) | ||
|
||
if(CONFIG_WIFI_CMD_AUTO_REGISTRATION) | ||
target_link_libraries(${COMPONENT_LIB} "-u console_cmd_wifi_register") | ||
endif() |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
menu "Wifi command Configuration" | ||
|
||
config WIFI_CMD_AUTO_REGISTRATION | ||
bool "Enable Console command wifi Auto-registration" | ||
default y | ||
help | ||
Enabling this allows for the autoregistration of the wifi command. | ||
|
||
config WIFI_CMD_NETWORK_SSID | ||
string "WiFi SSID" | ||
default "myssid" | ||
help | ||
SSID (network name) to connect to. | ||
|
||
config WIFI_CMD_NETWORK_PASSWORD | ||
string "WiFi Password" | ||
default "mypassword" | ||
help | ||
WiFi password (WPA or WPA2) to use. | ||
Can be left blank if the network has no security set. | ||
|
||
endmenu |
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
File renamed without changes.