1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-08 21:03:49 +01:00

update comment

This commit is contained in:
J. Nick Koston
2025-10-01 23:05:59 +02:00
parent 636d1e16f2
commit 03c869bd43
4 changed files with 8 additions and 4 deletions

View File

@@ -25,7 +25,8 @@ void MDNSComponent::setup() {
mdns_hostname_set(this->hostname_.c_str());
mdns_instance_name_set(this->hostname_.c_str());
for (const auto &service : this->services_) {
for (uint8_t i = 0; i < this->services_count_; i++) {
const auto &service = this->services_[i];
std::vector<mdns_txt_item_t> txt_records;
for (const auto &record : service.txt_records) {
mdns_txt_item_t it{};

View File

@@ -16,7 +16,8 @@ void MDNSComponent::setup() {
MDNS.begin(this->hostname_.c_str());
for (const auto &service : this->services_) {
for (uint8_t i = 0; i < this->services_count_; i++) {
const auto &service = this->services_[i];
// Strip the leading underscore from the proto and service_type. While it is
// part of the wire protocol to have an underscore, and for example ESP-IDF
// expects the underscore to be there, the ESP8266 implementation always adds

View File

@@ -16,7 +16,8 @@ void MDNSComponent::setup() {
MDNS.begin(this->hostname_.c_str());
for (const auto &service : this->services_) {
for (uint8_t i = 0; i < this->services_count_; i++) {
const auto &service = this->services_[i];
// Strip the leading underscore from the proto and service_type. While it is
// part of the wire protocol to have an underscore, and for example ESP-IDF
// expects the underscore to be there, the ESP8266 implementation always adds

View File

@@ -16,7 +16,8 @@ void MDNSComponent::setup() {
MDNS.begin(this->hostname_.c_str());
for (const auto &service : this->services_) {
for (uint8_t i = 0; i < this->services_count_; i++) {
const auto &service = this->services_[i];
// Strip the leading underscore from the proto and service_type. While it is
// part of the wire protocol to have an underscore, and for example ESP-IDF
// expects the underscore to be there, the ESP8266 implementation always adds