ESPHome
2026.12.0-dev
Loading...
Searching...
No Matches
esphome
components
thermopro_ble
thermopro_ble.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/components/sensor/sensor.h
"
4
#include "
esphome/components/ble_device_base/ble_device.h
"
5
6
namespace
esphome::thermopro_ble
{
7
8
class
ThermoProBLE
final :
public
ble_device_base::ESPBTDeviceListener
{
9
SUB_SENSOR(signal_strength)
10
SUB_SENSOR(
temperature
)
11
SUB_SENSOR(external_temperature)
12
SUB_SENSOR(humidity)
13
SUB_SENSOR(battery_level)
14
15
public
:
16
explicit
ThermoProBLE
(uint64_t
address
) :
address_
(
address
) {}
17
18
bool
parse_device(
const
ble_device_base::ESPBTDevice
&device)
override
;
19
void
dump_child_config()
override
;
20
21
protected
:
22
const
uint64_t
address_
;
23
};
24
25
}
// namespace esphome::thermopro_ble
ble_device.h
esphome::ble_device_base::ESPBTDevice
Definition
ble_device.h:214
esphome::ble_device_base::ESPBTDeviceListener
Definition
ble_device.h:320
esphome::thermopro_ble::ThermoProBLE
Definition
thermopro_ble.h:8
esphome::thermopro_ble::ThermoProBLE::address_
const uint64_t address_
Definition
thermopro_ble.h:22
esphome::libretiny::address
uint32_t address
Definition
crash_handler.cpp:376
esphome::thermopro_ble
Definition
thermopro_ble.cpp:7
sensor.h
temperature
uint16_t temperature
Definition
sun_gtil2.cpp:12
Generated by
1.12.0