Yup, I'm running on a battery and I need it to last for a month for monthly replacement.
I've gotten deep sleep mode to work with a self-wake using this code
ESP.deepSleep(10000000, WAKE_RF_DEFAULT);
As usual, I can't wake using the Force sensing resistor.
The doc you sent showed this code for external wake-up
void gpio_pin_wakeup_enable(uint32 i, GPIO_INT_TYPE intr_state);
may I ask what variable is there to change? eg, pin
and is there additional code needed?
Thanks once again!