Digistump Forums

The DigiX => DigiX Support => Topic started by: Twistit on October 19, 2014, 03:50:05 pm

Title: Have to reset digix after power failure.
Post by: Twistit on October 19, 2014, 03:50:05 pm
Everytime i unplug the digix or after a power failure my program wont run, i have to hit the reset button for it to start running its program again.
This wasnt a problem when i was still writing the code and it was sitting on my desk.

But now its controlling the lights for my terrarium and when a power failure occurs and i'm not at home my tortoise isn't happy =(

This happens with 2 unrelated programs so i doubt it's something in my code.... Would watchdog help for this issue?
Title: Re: Have to reset digix after power failure.
Post by: Amus3d on October 20, 2014, 11:20:30 am
i had simlier problem. 
put a delay before wifi.begin, enough time for the router to boot up first
Title: Re: Have to reset digix after power failure.
Post by: Twistit on October 20, 2014, 12:36:03 pm
I could almost kiss you!!
Title: Re: Have to reset digix after power failure.
Post by: Amus3d on October 21, 2014, 08:55:13 am
lol, Already built Z-program,
Title: Re: Have to reset digix after power failure.
Post by: fmarkos on February 03, 2015, 03:23:43 am
Thanks for this!
I subscribed to the forum just to find the solution to this problem.
I used:
  delay(5000);
  wifi.begin(9600);

and all is well now. Thanks again!