ESP8266 hangs in Cayenne.loop when WiFi Connection is lost

@mike2506red have a look at this Arduino Online/Offline Override