Allow ble tracker to subscribe to ota start and stop the scanning (#3800)

This commit is contained in:
Jesse Hills
2022-09-14 16:49:20 +12:00
committed by GitHub
parent a5e3cd1a42
commit f4b0917239
6 changed files with 36 additions and 12 deletions
+3
View File
@@ -41,6 +41,7 @@ enum OTAState { OTA_COMPLETED = 0, OTA_STARTED, OTA_IN_PROGRESS, OTA_ERROR };
/// OTAComponent provides a simple way to integrate Over-the-Air updates into your app using ArduinoOTA.
class OTAComponent : public Component {
public:
OTAComponent();
#ifdef USE_OTA_PASSWORD
void set_auth_password(const std::string &password) { password_ = password; }
#endif // USE_OTA_PASSWORD
@@ -103,5 +104,7 @@ class OTAComponent : public Component {
#endif
};
extern OTAComponent *global_ota_component; // NOLINT(cppcoreguidelines-avoid-non-const-global-variables)
} // namespace ota
} // namespace esphome