1
0
mirror of https://github.com/esphome/esphome.git synced 2025-03-20 09:38:18 +00:00
2024-07-30 13:45:19 +12:00

25 lines
400 B
C++

#pragma once
#include "esphome/core/defines.h"
#include <cstdint>
namespace esphome {
namespace watchdog {
class WatchdogManager {
public:
WatchdogManager(uint32_t timeout_ms);
~WatchdogManager();
private:
uint32_t get_timeout_();
void set_timeout_(uint32_t timeout_ms);
uint32_t saved_timeout_ms_{0};
uint32_t timeout_ms_{0};
};
} // namespace watchdog
} // namespace esphome