ESPHome
2025.2.2
Main Page
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
y
+
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
d
e
f
i
j
l
m
n
p
q
r
s
t
u
v
+
Enumerations
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
+
Enumerator
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
c
d
o
p
s
t
v
w
+
Enumerations
b
c
e
f
i
m
n
p
r
s
t
v
+
Enumerator
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
w
Related Functions
+
Files
File List
+
Globals
+
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
+
Functions
_
a
l
m
o
s
t
u
+
Variables
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
Typedefs
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Modules
Pages
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