Generalized-Core-Counter 3.20
Particle-based generalized core counter firmware
Loading...
Searching...
No Matches
SensorManager.h File Reference

Singleton wrapper around ISensor implementations. More...

#include "Particle.h"
#include "ISensor.h"

Go to the source code of this file.

Classes

class  SensorManager

Macros

#define measure   SensorManager::instance()
 Convenience macro for accessing the SensorManager singleton.

Variables

char internalTempStr [16]
char signalStr [64]

Detailed Description

Singleton wrapper around ISensor implementations.

Author
Chip McClelland (chip@.nosp@m.seei.nosp@m.nisgh.nosp@m.ts.c.nosp@m.om)

SensorManager owns a single ISensor instance and handles initialization, polling, and utility helpers like battery status, temperature conversion, and signal strength reporting. It provides a uniform interface to the rest of the firmware, regardless of which concrete sensor is attached.

Definition in file SensorManager.h.

Macro Definition Documentation

◆ measure

#define measure   SensorManager::instance()

Convenience macro for accessing the SensorManager singleton.

Usage:

measure.setup();
if (measure.loop()) {
auto data = measure.getSensorData();
}
#define measure
Convenience macro for accessing the SensorManager singleton.

Definition at line 33 of file SensorManager.h.

Referenced by handleConnectingState(), handleIdleState(), and handleReportingState().

Variable Documentation

◆ internalTempStr

char internalTempStr[16]
extern

◆ signalStr

char signalStr[64]
extern