mirror of
https://github.com/esphome/esphome.git
synced 2024-11-25 00:18:11 +01:00
http_request watchdog as a component (#7161)
This commit is contained in:
parent
83bb7d0266
commit
caa2ea64e3
8 changed files with 8 additions and 10 deletions
|
@ -427,6 +427,7 @@ esphome/components/veml7700/* @latonita
|
||||||
esphome/components/version/* @esphome/core
|
esphome/components/version/* @esphome/core
|
||||||
esphome/components/voice_assistant/* @jesserockz
|
esphome/components/voice_assistant/* @jesserockz
|
||||||
esphome/components/wake_on_lan/* @clydebarrow @willwill2will54
|
esphome/components/wake_on_lan/* @clydebarrow @willwill2will54
|
||||||
|
esphome/components/watchdog/* @oarcher
|
||||||
esphome/components/waveshare_epaper/* @clydebarrow
|
esphome/components/waveshare_epaper/* @clydebarrow
|
||||||
esphome/components/web_server_base/* @OttoWinter
|
esphome/components/web_server_base/* @OttoWinter
|
||||||
esphome/components/web_server_idf/* @dentra
|
esphome/components/web_server_idf/* @dentra
|
||||||
|
|
|
@ -14,7 +14,7 @@ from esphome.const import (
|
||||||
from esphome.core import CORE, Lambda
|
from esphome.core import CORE, Lambda
|
||||||
|
|
||||||
DEPENDENCIES = ["network"]
|
DEPENDENCIES = ["network"]
|
||||||
AUTO_LOAD = ["json"]
|
AUTO_LOAD = ["json", "watchdog"]
|
||||||
|
|
||||||
http_request_ns = cg.esphome_ns.namespace("http_request")
|
http_request_ns = cg.esphome_ns.namespace("http_request")
|
||||||
HttpRequestComponent = http_request_ns.class_("HttpRequestComponent", cg.Component)
|
HttpRequestComponent = http_request_ns.class_("HttpRequestComponent", cg.Component)
|
||||||
|
|
|
@ -3,12 +3,12 @@
|
||||||
#ifdef USE_ARDUINO
|
#ifdef USE_ARDUINO
|
||||||
|
|
||||||
#include "esphome/components/network/util.h"
|
#include "esphome/components/network/util.h"
|
||||||
|
#include "esphome/components/watchdog/watchdog.h"
|
||||||
|
|
||||||
#include "esphome/core/application.h"
|
#include "esphome/core/application.h"
|
||||||
#include "esphome/core/defines.h"
|
#include "esphome/core/defines.h"
|
||||||
#include "esphome/core/log.h"
|
#include "esphome/core/log.h"
|
||||||
|
|
||||||
#include "watchdog.h"
|
|
||||||
|
|
||||||
namespace esphome {
|
namespace esphome {
|
||||||
namespace http_request {
|
namespace http_request {
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,8 @@
|
||||||
#ifdef USE_ESP_IDF
|
#ifdef USE_ESP_IDF
|
||||||
|
|
||||||
#include "esphome/components/network/util.h"
|
#include "esphome/components/network/util.h"
|
||||||
|
#include "esphome/components/watchdog/watchdog.h"
|
||||||
|
|
||||||
#include "esphome/core/application.h"
|
#include "esphome/core/application.h"
|
||||||
#include "esphome/core/defines.h"
|
#include "esphome/core/defines.h"
|
||||||
#include "esphome/core/log.h"
|
#include "esphome/core/log.h"
|
||||||
|
@ -11,8 +13,6 @@
|
||||||
#include "esp_crt_bundle.h"
|
#include "esp_crt_bundle.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "watchdog.h"
|
|
||||||
|
|
||||||
namespace esphome {
|
namespace esphome {
|
||||||
namespace http_request {
|
namespace http_request {
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
#include "ota_http_request.h"
|
#include "ota_http_request.h"
|
||||||
#include "../watchdog.h"
|
|
||||||
|
|
||||||
#include "esphome/core/application.h"
|
#include "esphome/core/application.h"
|
||||||
#include "esphome/core/defines.h"
|
#include "esphome/core/defines.h"
|
||||||
#include "esphome/core/log.h"
|
#include "esphome/core/log.h"
|
||||||
|
|
||||||
#include "esphome/components/md5/md5.h"
|
#include "esphome/components/md5/md5.h"
|
||||||
|
#include "esphome/components/watchdog/watchdog.h"
|
||||||
#include "esphome/components/ota/ota_backend.h"
|
#include "esphome/components/ota/ota_backend.h"
|
||||||
#include "esphome/components/ota/ota_backend_arduino_esp32.h"
|
#include "esphome/components/ota/ota_backend_arduino_esp32.h"
|
||||||
#include "esphome/components/ota/ota_backend_arduino_esp8266.h"
|
#include "esphome/components/ota/ota_backend_arduino_esp8266.h"
|
||||||
|
|
1
esphome/components/watchdog/__init__.py
Normal file
1
esphome/components/watchdog/__init__.py
Normal file
|
@ -0,0 +1 @@
|
||||||
|
CODEOWNERS = ["@oarcher"]
|
|
@ -15,7 +15,6 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace esphome {
|
namespace esphome {
|
||||||
namespace http_request {
|
|
||||||
namespace watchdog {
|
namespace watchdog {
|
||||||
|
|
||||||
static const char *const TAG = "http_request.watchdog";
|
static const char *const TAG = "http_request.watchdog";
|
||||||
|
@ -72,5 +71,4 @@ uint32_t WatchdogManager::get_timeout_() {
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace watchdog
|
} // namespace watchdog
|
||||||
} // namespace http_request
|
|
||||||
} // namespace esphome
|
} // namespace esphome
|
|
@ -5,7 +5,6 @@
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
namespace esphome {
|
namespace esphome {
|
||||||
namespace http_request {
|
|
||||||
namespace watchdog {
|
namespace watchdog {
|
||||||
|
|
||||||
class WatchdogManager {
|
class WatchdogManager {
|
||||||
|
@ -22,5 +21,4 @@ class WatchdogManager {
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace watchdog
|
} // namespace watchdog
|
||||||
} // namespace http_request
|
|
||||||
} // namespace esphome
|
} // namespace esphome
|
Loading…
Reference in a new issue