It appears that when I fail to reset the time which is after the first cycle the GSM module goes offline for a second then comes back on.
It only does this once though so if still no connection after 1st cycle then its stuck. I thought wdt was to reset the Arduino but that stays as is throughout.
Anyway, it is becoming more and more apparent that perhaps the wdt is not going to work in this instance either because of my lack of knowledge or something funky with the GSM shield.
So... I'm trying to make it a little easier just to get it actually going and then I can go from there. I have come up with below code which to me looks like it should work.
As soon as Arduino is on GSM starts establishing so I have put a delay in after startup to give the shield chance to get GSM before doing the if/else.
now, if I have the card in it works a treat and does everything I want it to.
If I don't have the card in it just sits with the "failLed" on and stays there.
I am guessing that an If/else should be a lot easier to do what I want it to do now that I know a delay before checking status of GSM does the trick. I do realise this is a different method altogether than a wdt but such a simple code should achieve what I want shouldn't it?
{
digitalWrite(failPin, HIGH); //Fail LED
delay (5000);
if(gsmAccess.begin(PINNUMBER)==GSM_READY)
loop();
else
setup();} //if no luck, try again.