ESPHome
2026.6.0-dev
Loading...
Searching...
No Matches
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::hrxl_maxsonar_wr
{
8
9
class
HrxlMaxsonarWrComponent
:
public
sensor::Sensor
,
public
Component
,
public
uart::UARTDevice
{
10
public
:
11
// Nothing really public.
12
13
// ========== INTERNAL METHODS ==========
14
void
loop
()
override
;
15
void
dump_config
()
override
;
16
17
protected
:
18
void
check_buffer_
();
19
20
std::string
buffer_
;
21
};
22
23
}
// namespace esphome::hrxl_maxsonar_wr
esphome::Component
Definition
component.h:145
esphome::hrxl_maxsonar_wr::HrxlMaxsonarWrComponent
Definition
hrxl_maxsonar_wr.h:9
esphome::hrxl_maxsonar_wr::HrxlMaxsonarWrComponent::buffer_
std::string buffer_
Definition
hrxl_maxsonar_wr.h:20
esphome::hrxl_maxsonar_wr::HrxlMaxsonarWrComponent::dump_config
void dump_config() override
Definition
hrxl_maxsonar_wr.cpp: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:25
esphome::hrxl_maxsonar_wr::HrxlMaxsonarWrComponent::check_buffer_
void check_buffer_()
Definition
hrxl_maxsonar_wr.cpp:35
esphome::sensor::Sensor
Base-class for all sensors.
Definition
sensor.h:47
esphome::uart::UARTDevice
Definition
uart.h:11
component.h
esphome::hrxl_maxsonar_wr
Definition
hrxl_maxsonar_wr.cpp:12
sensor.h
uart.h
Generated by
1.12.0