Currently my code is quite minimal:
Code: Select all
#include <Arduino.h>
#include <RadioLib.h>
#include "STM32LowPower.h"
STM32WLx radio = new STM32WLx_Module();
void setup()
{
LowPower.begin();
radio.sleep(); // didnt really help
}
void loop()
{
delay(10000); // ~6.5mA
LowPower.shutdown(5000); // ~500uA
delay(100); // never happens, "shutdown" seems to cause a reboot, not a problem for now
LowPower.shutdown(100);
}
Code: Select all
LowPower.shutdown(5000);
I had hoped for much less, perhaps even down to a few uA.
Suggestions?
I'm using platformio, if that matters.