SmartConfig Issue

esp8266ac
Posts: 7
Joined: Sun Oct 04, 2015 12:39 am

SmartConfig Issue

Postby esp8266ac » Tue Jan 19, 2016 6:10 pm

Hi All:

One question about smartconfig:

Scenario:
1. ESP8266 got right SSID/Passwd once & worked OK.
2. After somedays, ESP8266 could NOT connect router any longer,
Root causes could be: a. SSID/Passwd changed, b. router faults temporarily, c. router removed.
ESP8266 can NOT switch from work mode to smartconfig mode without any end user's determination & operation (such as reset button to clear SSID/Passwd)
3. End user just want to reconfigure SSID/Passwd via smartconfig feature in App

To resolve the above issues, new requirements:
Smartconfig always standby either ESP8266 are NOT configured SSID/Passwd or configured SSID/Passwd (connected or NOT connected).

Could RTOS SDK support the above smartconfig mode? any sample code if YES?
Any work around approaches if NOT?

Many thanks!

B.R.

Macrogram

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: SmartConfig Issue

Postby ESP_Faye » Wed Jan 20, 2016 3:22 pm

Hi,

You can register WiFi event handler by calling wifi_set_event_handler_cb. When WiFi status changed, there will be corresponding WiFi event.

For example, if you got "EVENT_STAMODE_DISCONNECTED", you can try to connect to router by SmartConfig again.

Thanks for your interest in ESP8266 !

Who is online

Users browsing this forum: No registered users and 190 guests