ESPHome  2024.11.1
bedjet_child.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "bedjet_codec.h"
4 #include "esphome/core/helpers.h"
5 
6 namespace esphome {
7 namespace bedjet {
8 
9 // Forward declare BedJetHub
10 class BedJetHub;
11 
12 class BedJetClient : public Parented<BedJetHub> {
13  public:
14  virtual void on_status(const BedjetStatusPacket *data) = 0;
15  virtual void on_bedjet_state(bool is_ready) = 0;
16 
17  protected:
18  friend BedJetHub;
19  virtual std::string describe() = 0;
20 };
21 
22 } // namespace bedjet
23 } // namespace esphome
virtual std::string describe()=0
The format of a BedJet V3 status packet.
Definition: bedjet_codec.h:39
Hub component connecting to the BedJet device over Bluetooth.
Definition: bedjet_hub.h:37
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7
virtual void on_status(const BedjetStatusPacket *data)=0
virtual void on_bedjet_state(bool is_ready)=0
Helper class to easily give an object a parent of type T.
Definition: helpers.h:522