Need help with Watch Dog Timer

To johnwasser. The delay before the wdt_enable statement is to allow the serial port time to send the diagnostic message.

Further, since my last post, further study has shown the following. Having found the reference to the need for a wdt_disable early in the code, I tried that and it worked in test sketches but didn't work in the production sketch. Further work has shown that I need a wdt_disable before every instance of wdt_enable. It seems cumbersome, but I now use this structure and it works reliably:

    Serial.println( F( "Failed to open TCP connection" ) );
    wdt_disable();
    delay(3000);
    wdt_enable(WDTO_500MS);
    delay(500);

I remain with a feeling of weirdness about the whole thing.