ESPHome 2025.5.0
Loading...
Searching...
No Matches
uptime_timestamp_sensor.h
Go to the documentation of this file.
1#pragma once
2
4
5#ifdef USE_TIME
6
10
11namespace esphome {
12namespace uptime {
13
15 public:
16 void setup() override;
17 void dump_config() override;
18
19 float get_setup_priority() const override;
20
21 void set_time(time::RealTimeClock *time) { this->time_ = time; }
22
23 protected:
25};
26
27} // namespace uptime
28} // namespace esphome
29
30#endif // USE_TIME
Base-class for all sensors.
Definition sensor.h:57
The RealTimeClock class exposes common timekeeping functions via the device's local real-time clock.
void set_time(time::RealTimeClock *time)
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7