System.sleep(SLEEP_MODE_DEEP, long seconds, SLEEP_DISABLE_WKP_PIN).
But if this is the case
your PCB should make sure the VBAT pin is permanently powered.
Either the way how it's done on the Electron via a 0Ohm resistor between 3v3 and VBAT or via a dedicated supply in the voltage range 1.65V .. 3.6V (e.g. coin cell) - not sure if connecting it to the LiPo (up to 4.2V) is a good idea tho'.
I used that SLEEP_DISABLE_WKP_PIN command and its working great now.
I have an external watchdog that was holding the WKP pin high… I should have caught that.
Thanks for the help.
On my next iteration of this PCB, should I tie 3V3 and VBAT together instead?
Is there any negative consequences using my current boards that connect VBAT and LiPo pins?