Use this forum to chat about hardware specific topics for the ESP8266 (peripherals, memory, clocks, JTAG, programming)

User avatar
By terenceang
#12857 Ok, thanks.. interesting, I will try that..

On the new SDK, you can put the ESP into deep sleep (everything off except RTC) then boot it up with a signal from pin. I have yet to test it as I am trying to get the REST client working., there might be a solution for you there.
User avatar
By Mikejstb
#12860 I've got some temperature sensors where I do deep sleep, wake up ever 30 minutes and lot to mqtt.
Works great, I think the Lipo battery is going to last for months.

I haven't had much luck waking the ESP up via the PIR to reset, but I haven't tried doing it for a while.
User avatar
By Mikejstb
#12879 Well I made an interim fix while I hopefully figure out the 5 minute mystery.
I just set an additional timer to send a message of "keep alive" every 3 minutes.
So far it's been running for over an hour so I think it's doing what I need.
I use Node Red to process my mqtt stuff so it's easy enough to either log or ignore the keep alive messages.

I've been playing with the brand new ESP Arduino IDE, trying to decide whether to move everything over to that environment.
It looks like it's less prone to memory problems than Lua.