Hey,
so I wanted to use the new sleep api as follows:
SystemSleepConfiguration config;
config.mode(SystemSleepMode::STOP)
.gpio(D2, RISING)
.duration(30s)
.network(NETWORK_INTERFACE_CELLULAR);
SystemSleepResult result = System.sleep(config);
When compiling it says:
error: expected unqualified-id before numeric constant
#define STOP 1
Any suggestions?
Thanks