ESP8266 (as a shield) WiFi Recovery?

Basics of what you need is covered in a post a few hours ago I need a FAIL SAFE