-
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): Moved wifi commands from idf examples
- Loading branch information
1 parent
a363bee
commit 996c109
Showing
9 changed files
with
1,971 additions
and
4 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,9 @@ | ||
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. | ||
|
||
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
File renamed without changes.
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,21 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#pragma once | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
|
||
void register_wifi_cmd(void); | ||
void register_wifi_itwt(void); | ||
void register_wifi_stats(void); | ||
|
||
|
||
#ifdef __cplusplus | ||
} | ||
#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,26 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#pragma once | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
|
||
#if CONFIG_ESP_WIFI_ENABLE_WIFI_TX_STATS || CONFIG_ESP_WIFI_ENABLE_WIFI_RX_STATS | ||
|
||
int wifi_cmd_get_tx_statistics(int argc, char **argv); | ||
int wifi_cmd_clr_tx_statistics(int argc, char **argv); | ||
|
||
int wifi_cmd_get_rx_statistics(int argc, char **argv); | ||
int wifi_cmd_clr_rx_statistics(int argc, char **argv); | ||
|
||
#endif | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif |
Oops, something went wrong.