ESPHome 2025.5.0
Loading...
Searching...
No Matches
bedjet_child.h
Go to the documentation of this file.
1#pragma once
2
3#include "bedjet_codec.h"
5
6namespace esphome {
7namespace bedjet {
8
9// Forward declare BedJetHub
10class BedJetHub;
11
12class 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
Helper class to easily give an object a parent of type T.
Definition helpers.h:538
virtual void on_status(const BedjetStatusPacket *data)=0
virtual void on_bedjet_state(bool is_ready)=0
virtual std::string describe()=0
Hub component connecting to the BedJet device over Bluetooth.
Definition bedjet_hub.h:37
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7
The format of a BedJet V3 status packet.