1
0
mirror of https://github.com/esphome/esphome.git synced 2025-11-19 00:05:43 +00:00

Add mDNS config dump (#2576)

This commit is contained in:
Maurice Makaay
2021-10-21 16:02:28 +02:00
committed by GitHub
parent cac5b356db
commit f2ebfe7aef
5 changed files with 40 additions and 26 deletions

View File

@@ -26,6 +26,7 @@ struct MDNSService {
class MDNSComponent : public Component {
public:
void setup() override;
void dump_config() override;
#if defined(USE_ESP8266) && defined(USE_ARDUINO)
void loop() override;
@@ -33,8 +34,9 @@ class MDNSComponent : public Component {
float get_setup_priority() const override { return setup_priority::AFTER_WIFI; }
protected:
std::vector<MDNSService> compile_services_();
std::string compile_hostname_();
std::vector<MDNSService> services_{};
std::string hostname_;
void compile_records_();
};
} // namespace mdns