Merge branch 'bugfix/mark_auto_connect_api_as_obsolete' into 'master'

esp32: mark WiFi auto connect API as deprecated

See merge request idf/esp-idf!1970
This commit is contained in:
Jiang Jiang Jian 2018-05-03 10:40:27 +08:00
commit 444d6606e7

View file

@ -757,7 +757,7 @@ esp_err_t esp_wifi_set_storage(wifi_storage_t storage);
* - ESP_ERR_WIFI_MODE: WiFi internal error, the station/soft-AP control block is invalid * - ESP_ERR_WIFI_MODE: WiFi internal error, the station/soft-AP control block is invalid
* - others: refer to error code in esp_err.h * - others: refer to error code in esp_err.h
*/ */
esp_err_t esp_wifi_set_auto_connect(bool en); esp_err_t esp_wifi_set_auto_connect(bool en) __attribute__ ((deprecated));
/** /**
* @brief Get the auto connect flag * @brief Get the auto connect flag
@ -769,7 +769,7 @@ esp_err_t esp_wifi_set_auto_connect(bool en);
* - ESP_ERR_WIFI_NOT_INIT: WiFi is not initialized by esp_wifi_init * - ESP_ERR_WIFI_NOT_INIT: WiFi is not initialized by esp_wifi_init
* - ESP_ERR_INVALID_ARG: invalid argument * - ESP_ERR_INVALID_ARG: invalid argument
*/ */
esp_err_t esp_wifi_get_auto_connect(bool *en); esp_err_t esp_wifi_get_auto_connect(bool *en) __attribute__ ((deprecated));
/** /**
* @brief Set 802.11 Vendor-Specific Information Element * @brief Set 802.11 Vendor-Specific Information Element