ESPHome  2024.11.1
uptime_timestamp_sensor.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "esphome/core/defines.h"
4 
5 #ifdef USE_TIME
6 
10 
11 namespace esphome {
12 namespace 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
The RealTimeClock class exposes common timekeeping functions via the device's local real-time clock...
void set_time(time::RealTimeClock *time)
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7
Base-class for all sensors.
Definition: sensor.h:57