Class espos::sensors::Analog
ClassList > espos > sensors > Analog
#include <espos_sensors/sensors.hpp>
Inherits the following classes: espos::flow::NodeBase, espos::flow::Producer
Public Types inherited from espos::flow::Producer
See espos::flow::Producer
Public Attributes inherited from espos::flow::NodeBase
See espos::flow::NodeBase
Public Functions
Public Functions inherited from espos::flow::NodeBase
See espos::flow::NodeBase
Public Functions inherited from espos::flow::Producer
See espos::flow::Producer
Protected Functions
Protected Functions inherited from espos::flow::NodeBase
See espos::flow::NodeBase
Protected Functions inherited from espos::flow::Producer
See espos::flow::Producer
Public Functions Documentation
function Analog
inline espos::sensors::Analog::Analog (
const char * id,
int gpio,
uint32_t period_ms,
espos_adc_atten_t atten=ESPOS_ADC_ATTEN_12DB,
uint8_t samples=16
)
function calibrated
inline bool espos::sensors::Analog::calibrated () const
function open_error
inline esp_err_t espos::sensors::Analog::open_error () const
function read_now
inline std::optional< float > espos::sensors::Analog::read_now ()
function start
inline esp_err_t espos::sensors::Analog::start ()
function stop
inline void espos::sensors::Analog::stop ()
Protected Functions Documentation
function node_id_for_error
inline virtual const char * espos::sensors::Analog::node_id_for_error () override const
Implements espos::flow::Producer::node_id_for_error
The documentation for this class was generated from the following file espos_sensors/include/espos_sensors/sensors.hpp