ESPHome
2024.11.3
esphome
esphome
components
hrxl_maxsonar_wr
hrxl_maxsonar_wr.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/core/component.h
"
4
#include "
esphome/components/sensor/sensor.h
"
5
#include "
esphome/components/uart/uart.h
"
6
7
namespace
esphome
{
8
namespace
hrxl_maxsonar_wr {
9
10
class
HrxlMaxsonarWrComponent
:
public
sensor::Sensor
,
public
Component
,
public
uart::UARTDevice
{
11
public
:
12
// Nothing really public.
13
14
// ========== INTERNAL METHODS ==========
15
void
loop
()
override
;
16
void
dump_config
()
override
;
17
18
protected
:
19
void
check_buffer_
();
20
21
std::string
buffer_
;
22
};
23
24
}
// namespace hrxl_maxsonar_wr
25
}
// namespace esphome
uart.h
esphome::hrxl_maxsonar_wr::HrxlMaxsonarWrComponent::dump_config
void dump_config() override
Definition:
hrxl_maxsonar_wr.cpp:69
esphome::Component
Definition:
component.h:68
esphome::hrxl_maxsonar_wr::HrxlMaxsonarWrComponent::loop
void loop() override
HRXL sensors output the format "R1234\r" at 6Hz The 1234 means 1234mm XL sensors output the format "R...
Definition:
hrxl_maxsonar_wr.cpp:26
sensor.h
esphome::hrxl_maxsonar_wr::HrxlMaxsonarWrComponent::buffer_
std::string buffer_
Definition:
hrxl_maxsonar_wr.h:21
esphome::uart::UARTDevice
Definition:
uart.h:12
esphome::hrxl_maxsonar_wr::HrxlMaxsonarWrComponent::check_buffer_
void check_buffer_()
Definition:
hrxl_maxsonar_wr.cpp:36
esphome::hrxl_maxsonar_wr::HrxlMaxsonarWrComponent
Definition:
hrxl_maxsonar_wr.h:10
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
component.h
esphome::sensor::Sensor
Base-class for all sensors.
Definition:
sensor.h:57
Generated by
1.8.13