23extern SystemSleepConfiguration
config;
const unsigned long resetWait
bool firstConnectionObserved
bool firstConnectionQueueDrainedLogged
volatile bool userSwitchDetected
volatile bool sensorDetect
unsigned long connectedStartMs
SystemSleepConfiguration config
bool hibernateDisabledForSession
const unsigned long maxConnectAttemptMs
const unsigned long stayAwakeLong
void dailyCleanup()
Cleanup function that is run at the beginning of the day.
int secondsUntilNextOpen()
void publishData()
Publish sensor data to Ubidots webhook and device-data ledger.
const unsigned long maxOnlineWorkMs
void publishStateTransition()