diff --git a/components/esp8266/include/esp_smartconfig.h b/components/esp8266/include/esp_smartconfig.h index ed5dff8f..f7b8e431 100644 --- a/components/esp8266/include/esp_smartconfig.h +++ b/components/esp8266/include/esp_smartconfig.h @@ -98,7 +98,7 @@ esp_err_t esp_smartconfig_stop(void); * - ESP_OK: succeed * - others: fail */ -esp_err_t esptouch_set_timeout(uint8_t time_s); +esp_err_t esp_esptouch_set_timeout(uint8_t time_s); /** * @brief Set protocol type of SmartConfig. @@ -114,6 +114,21 @@ esp_err_t esptouch_set_timeout(uint8_t time_s); */ esp_err_t esp_smartconfig_set_type(smartconfig_type_t type); +/** + * @brief Set mode of SmartConfig. default normal mode. + * + * @attention 1. Please call it before API esp_smartconfig_start. + * @attention 2. Fast mode have corresponding APP(phone). + * @attention 3. Two mode is compatible. + * + * @param enable false-disable(default); true-enable; + * + * @return + * - ESP_OK: succeed + * - others: fail + */ +esp_err_t esp_smartconfig_fast_mode(bool enable); + #ifdef __cplusplus } #endif diff --git a/components/esp8266/lib/VERSION b/components/esp8266/lib/VERSION index c2063dba..6d6a10ce 100644 --- a/components/esp8266/lib/VERSION +++ b/components/esp8266/lib/VERSION @@ -5,6 +5,6 @@ gwen: net80211: 915e6ba pp: 915e6ba pwm: 0181338 - smartconfig:9ec59b5 + smartconfig:8d61f0e wpa: 8943c89 wps: fdd8880 \ No newline at end of file diff --git a/components/esp8266/lib/libsmartconfig.a b/components/esp8266/lib/libsmartconfig.a index 0fa412ee..b11fc395 100644 Binary files a/components/esp8266/lib/libsmartconfig.a and b/components/esp8266/lib/libsmartconfig.a differ