Hi all, I’m trying to use the new Sleep system objects, but I’m getting such classics as
/xxxxxx/firmware/firmware/main.cpp: In function 'void loop()':
/xxxxxx/firmware/firmware/main.cpp:110:3: error: 'SystemSleepConfiguration' was not declared in this scope
SystemSleepConfiguration sleepcfg;
^
and
/xxxxxx/firmware/firmware/main.cpp:233:26: error: 'NETWORK_INTERFACE_CELLULAR' was not declared in this scope
.network(NETWORK_INTERFACE_CELLULAR) // snooze cell modem
^
and
/xxxxxx/firmware/firmware/main.cpp:239:23: error: 'SystemSleepMode' has not been declared
sleepcfg.mode(SystemSleepMode::STOP) // keep GPIO alive
Prior to adding the new API calls, everything compiled fine.
I’m using #include <Particle.h>
as usual. I’ve attempted to build clean
as well.
My po-util v7.2.0 is up to date and pulling release/stable
. I’m at a loss, but I thought I’d ask around the room before pulling the build system apart.