SensorLib 0.5.0
Multi-platform sensor driver library for Arduino, PlatformIO, and ESP-IDF
Loading...
Searching...
No Matches
SensorUtils Class Reference

Utility class providing static sensor-related helper functions. More...

#include <SensorBase.hpp>

Static Public Member Functions

static const char * typeToString (SensorType type)
 Convert sensor type enumeration to string representation.
 

Detailed Description

Utility class providing static sensor-related helper functions.

Definition at line 47 of file SensorBase.hpp.

Member Function Documentation

◆ typeToString()

static const char * SensorUtils::typeToString ( SensorType  type)
inlinestatic

Convert sensor type enumeration to string representation.

Parameters
typeSensor type enumeration value
Returns
const char* String representation of the sensor type

Definition at line 56 of file SensorBase.hpp.

References ACCELEROMETER, GYROSCOPE, HUMIDITY, MAGNETOMETER, MULTI_AXIS, PRESSURE, and TEMPERATURE.

Referenced by setup().


The documentation for this class was generated from the following file: