wdt_enable(WDTO_8S); is not enough.

Hi, i am making a gsm controlled system with the gsm900 shield To be able to change some settings i need to reboot the audio remotely (it also has an ethernet shield, and changing the ip is impossible without rebooting)

The setup of the GSM shield takes very long so i put the wdt_enable(WDTO_8S) after the gsm.begin

But now sending an sms usually takes more than 8 seconds and the arduino reboots.

Is there a way to bring the WDTO to something like 16S?

Tnx Fabrizio

You can set the WDT to interrupt mode. In the WDT ISR you need to increment a global variable until the desired time has elapsed. Then reconfigure the WDT to reset mode. See also Nick Gammons article