mirror of
https://github.com/esphome/esphome.git
synced 2024-12-02 11:44:13 +01:00
25 lines
547 B
C++
25 lines
547 B
C++
#pragma once
|
|
|
|
#include "esphome/core/component.h"
|
|
#include "esphome/components/sensor/sensor.h"
|
|
#include "esphome/components/uart/uart.h"
|
|
|
|
namespace esphome {
|
|
namespace hrxl_maxsonar_wr {
|
|
|
|
class HrxlMaxsonarWrComponent : public sensor::Sensor, public Component, public uart::UARTDevice {
|
|
public:
|
|
// Nothing really public.
|
|
|
|
// ========== INTERNAL METHODS ==========
|
|
void loop() override;
|
|
void dump_config() override;
|
|
|
|
protected:
|
|
void check_buffer_();
|
|
|
|
std::string buffer_;
|
|
};
|
|
|
|
} // namespace hrxl_maxsonar_wr
|
|
} // namespace esphome
|