mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
component/esp32: modify bool argument name from enable to en
1. Modify WIFI_INIT_CONFIG_DEFAULT 2. Modify bool argument name from enable to en
This commit is contained in:
parent
bd2e55def3
commit
0aace445a6
@ -143,6 +143,11 @@ typedef struct {
|
|||||||
wifi_event_handler_t event_handler; /**< WiFi event handler */
|
wifi_event_handler_t event_handler; /**< WiFi event handler */
|
||||||
} wifi_init_config_t;
|
} wifi_init_config_t;
|
||||||
|
|
||||||
|
|
||||||
|
#define WIFI_INIT_CONFIG_DEFAULT(event_handler_) { \
|
||||||
|
.event_handler = (wifi_event_handler_t)event_handler_, \
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Init WiFi
|
* @brief Init WiFi
|
||||||
* Alloc resource for WiFi driver, such as WiFi control structure, RX/TX buffer,
|
* Alloc resource for WiFi driver, such as WiFi control structure, RX/TX buffer,
|
||||||
@ -523,7 +528,7 @@ esp_err_t esp_wifi_set_promiscuous_rx_cb(wifi_promiscuous_cb_t cb);
|
|||||||
* @return ESP_OK : succeed
|
* @return ESP_OK : succeed
|
||||||
* @return others : fail
|
* @return others : fail
|
||||||
*/
|
*/
|
||||||
esp_err_t esp_wifi_set_promiscuous(bool enable);
|
esp_err_t esp_wifi_set_promiscuous(bool en);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Get the promiscuous mode.
|
* @brief Get the promiscuous mode.
|
||||||
@ -533,7 +538,7 @@ esp_err_t esp_wifi_set_promiscuous(bool enable);
|
|||||||
* @return ESP_OK : succeed
|
* @return ESP_OK : succeed
|
||||||
* @return others : fail
|
* @return others : fail
|
||||||
*/
|
*/
|
||||||
esp_err_t esp_wifi_get_promiscuous(bool *enable);
|
esp_err_t esp_wifi_get_promiscuous(bool *en);
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
char ssid[32]; /**< SSID of ESP32 soft-AP */
|
char ssid[32]; /**< SSID of ESP32 soft-AP */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user