esphome/esphome/components/ota_http/watchdog.h

26 lines
477 B
C++

#pragma once
#include <cstdint>
namespace esphome {
namespace ota_http {
namespace watchdog {
static const char *const TAG = "ota_http.watchdog";
class Watchdog {
public:
static uint32_t get_timeout();
static void set_timeout(uint32_t timeout_ms);
static void reset();
private:
static uint32_t timeout_ms; // NOLINT
static uint32_t init_timeout_ms; // NOLINT
Watchdog() {}
};
} // namespace watchdog
} // namespace ota_http
} // namespace esphome