Closed

Description
Basic Infos
Hardware
Hardware: ESP-12E
Core Version: 2.1.0-rc2
Description
Downloaded the latest Smartconfig SDK on iOS/android. The smartconfig works perfectly fine for the first few times. During the testing i was repeatedly trying the smartconfig even if it is connected to WIFI and the ESP got a crash with poison block error mentioned below after 4th or 5th attempt. It happens randomly. Is it not advisable to repeatedly use smartconfig even if the device is connected to WIFI ? or is there any workaround for this ?
Settings in IDE
Module: Generic ESP8266 Module
Flash Size: 4MB/1MB
CPU Frequency: 80Mhz
Flash Mode: qio
Flash Frequency: 40Mhz
Upload Using: SERIAL
Reset Method: ck
Sketch
void setup()
{
Serial.begin(115200);
startSmartConfig();
}
void startSmartConfig(){
WiFi.mode(WIFI_STA);
WiFi.beginSmartConfig();
delay(200);
//Wait for SmartConfig packet from mobile
Serial.println("Waiting for SmartConfig.");
while (!WiFi.smartConfigDone()) {
delay(500);
Serial.print(".");
}
Serial.println("");
Serial.println("SmartConfig received.");
//Wait for WiFi to connect to AP
int counter = 0;
Serial.println("Waiting for WiFi");
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
counter++;
if(counter == 60){
break;
}
}
counter = 0;
if(WiFi.status() != WL_CONNECTED)
{
Serial.println("WiFi not Connected.");
}
else
{
Serial.println("WiFi Connected.");
Serial.print("IP Address: ");
Serial.println(WiFi.localIP());
}
}
void loop(){}
Debug Messages
Smart config activated...
Waiting for SmartConfig...................there is no poison after the block. Expected poison address: 0x3fff6e91, actual data: 0xa5 0xa5 0xa5 0x0
block start: 3fff6ab4
Metadata
Metadata
Assignees
Labels
No labels