mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-07-15 08:32:42 +08:00
feat(lib): refactor smartconfig api
This commit is contained in:
@ -98,7 +98,7 @@ esp_err_t esp_smartconfig_stop(void);
|
|||||||
* - ESP_OK: succeed
|
* - ESP_OK: succeed
|
||||||
* - others: fail
|
* - 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.
|
* @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);
|
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
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -5,6 +5,6 @@ gwen:
|
|||||||
net80211: 915e6ba
|
net80211: 915e6ba
|
||||||
pp: 915e6ba
|
pp: 915e6ba
|
||||||
pwm: 0181338
|
pwm: 0181338
|
||||||
smartconfig:9ec59b5
|
smartconfig:8d61f0e
|
||||||
wpa: 8943c89
|
wpa: 8943c89
|
||||||
wps: fdd8880
|
wps: fdd8880
|
Binary file not shown.
Reference in New Issue
Block a user