Yes, sorry i did some changes in this scketh ir oreder to do some tests so i delete 00 from 300000 millisecosnds, but in the real scketh the delay is 300000 ms = 5 minutes. The wifi comunication is whith a wizfi210 module mount into a xbee structure that use the 2 and 3 pins to serial comunication, so for that I have to use the softwareserial library. Thanks