|
Generalized-Core-Counter 3.20
Particle-based generalized core counter firmware
|
#include "state/State_Common.h"#include "Config.h"#include "Cloud.h"#include "LocalTimeRK.h"#include "MyPersistentData.h"#include "PublishQueuePosixRK.h"#include "SensorManager.h"#include "device_pinout.h"#include "SensorDefinitions.h"Go to the source code of this file.
Functions | |
| void | ensureSensorEnabled (const char *context) |
| void | handleIdleState () |
| void ensureSensorEnabled | ( | const char * | context | ) |
Definition at line 15 of file State_Idle.cpp.
References SensorManager::initializeFromConfig(), SensorManager::instance(), and SensorManager::onExitSleep().
Referenced by handleIdleState(), and handleSleepingState().
| void handleIdleState | ( | ) |
Definition at line 29 of file State_Idle.cpp.
References CONNECTED, connectedStartMs, countSignalTimer, current, ensureSensorEnabled(), firstConnectionObserved, firstConnectionQueueDrainedLogged, SensorManager::instance(), isWithinOpenHours(), measure, oldState, publishStateTransition(), REPORTING_STATE, SCHEDULED, sensorDetect, SLEEPING_STATE, state, and sysStatus.
Referenced by loop().