mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-05-31 18:18:27 +02:00
8ef4aaa70e
Co-authored-by: Keith Burzinski <kbx81x@gmail.com> Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Co-authored-by: Edward Firmo <94725493+edwardtfn@users.noreply.github.com>
28 lines
460 B
C++
28 lines
460 B
C++
#pragma once
|
|
|
|
#include "esphome/core/defines.h"
|
|
|
|
#include <cstdint>
|
|
|
|
namespace esphome {
|
|
namespace http_request {
|
|
namespace watchdog {
|
|
|
|
class WatchdogManager {
|
|
#ifdef USE_HTTP_REQUEST_OTA_WATCHDOG_TIMEOUT
|
|
public:
|
|
WatchdogManager();
|
|
~WatchdogManager();
|
|
|
|
private:
|
|
uint32_t get_timeout_();
|
|
void set_timeout_(uint32_t timeout_ms);
|
|
|
|
uint32_t saved_timeout_ms_{0};
|
|
#endif
|
|
};
|
|
|
|
} // namespace watchdog
|
|
} // namespace http_request
|
|
} // namespace esphome
|