Hello
timer0.attach(10,ReConfig);
while (WiFi.status() != WL_CONNECTED)
{
delay(500);
Serial.print(".");
}
You never stop this timer0 so ReConfig will be called even when Wifi has connected
I suggest that you don't use this Ticker thing, instead increase a counter inside the while loop and call ReConfig when this counter reach a value like 20