-->
Page 1 of 3

Is it a Bug?

PostPosted: Mon Sep 05, 2016 8:26 am
by ssylca
Hi, I wonder if anyone has experienced my problem.
I have for a few months been using ESP8266-12E to monitor temperature, humidity, battery voltage and posting the values on ThingSpeak. I have several ESP doing this, some using the 'sleep' command, others just 'delay'. They are directly powered by 3.2V LifePO4 batteries. As a rule, everything works fine for a week to 10 days, then the ESP stops connecting to the web and drops from STA mode to AP mode. The program still runs (as indicated by the blue led flashing that I use as a 'heartbeat' monitor) I then need to re-start the ESP at ip 192.168.4.1 and reset the SETTINGS ssid & password, then everything is ok again!
Any idea why? Suggestions?

Thanks,

S - See more at: viewtopic.php?f=45&t=11630#sthash.DbjPDtqb.dpuf

Re: Is it a Bug?

PostPosted: Wed Sep 07, 2016 9:48 pm
by Mmiscool
Are you writing any data to flash?

Re: Is it a Bug?

PostPosted: Thu Sep 08, 2016 9:45 am
by ssylca
No, I don't. This is the script used:

let BatVolt = 0
BatVolt= io(ai)
BatVolt=BatVolt*4.01 ' (for voltage divider)
BatVolt=int(BatVolt)
bla$=str(BatVolt)
SENDTS("Z7QYCY80QTKL4XIY","1",bla$) ' (not the real API key)
io(po,5,0)
delay 2000
io(po,5,1)
sleep 1170
end

Thank you for your reply.

S.

Re: Is it a Bug?

PostPosted: Thu Sep 08, 2016 8:47 pm
by Mmiscool
Possibly add a WIFI.CONNECT() with your wifi info prior to the posting of the data to thing speak. Just to reset the wifi connection.

10 days is a long time and i dont have a good method to test.

It might also be some thing to do with your roughter...