mirror of
https://github.com/esphome/esphome.git
synced 2025-03-27 13:08:20 +00:00
38 lines
845 B
C++
38 lines
845 B
C++
#pragma once
|
|
|
|
#ifdef USE_ESP32
|
|
|
|
#include "esphome/components/airthings_wave_base/airthings_wave_base.h"
|
|
|
|
namespace esphome {
|
|
namespace airthings_wave_mini {
|
|
|
|
static const char *const SERVICE_UUID = "b42e3882-ade7-11e4-89d3-123b93f75cba";
|
|
static const char *const CHARACTERISTIC_UUID = "b42e3b98-ade7-11e4-89d3-123b93f75cba";
|
|
|
|
class AirthingsWaveMini : public airthings_wave_base::AirthingsWaveBase {
|
|
public:
|
|
AirthingsWaveMini();
|
|
|
|
void dump_config() override;
|
|
|
|
protected:
|
|
void read_sensors(uint8_t *value, uint16_t value_len) override;
|
|
|
|
struct WaveMiniReadings {
|
|
uint16_t unused01;
|
|
uint16_t temperature;
|
|
uint16_t pressure;
|
|
uint16_t humidity;
|
|
uint16_t voc;
|
|
uint16_t unused02;
|
|
uint32_t unused03;
|
|
uint32_t unused04;
|
|
};
|
|
};
|
|
|
|
} // namespace airthings_wave_mini
|
|
} // namespace esphome
|
|
|
|
#endif // USE_ESP32
|