8000 Changes for #363 · James-sjec/esp32-snippets@59f8eb8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 59f8eb8

Browse files
committed
Changes for nkolban#363
1 parent 06c1ecf commit 59f8eb8

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

cpp_utils/WiFi.cpp

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,7 @@ std::string WiFiAPRecord::toString() {
647647
return std::string(std::move(info_str));
648648
} // toString
649649

650+
/*
650651
MDNS::MDNS() {
651652
esp_err_t errRc = ::mdns_init(TCPIP_ADAPTER_IF_STA, &m_mdns_server);
652653
if (errRc != ESP_OK) {
@@ -661,6 +662,7 @@ MDNS::~MDNS() {
661662
}
662663
m_mdns_server = nullptr;
663664
}
665+
*/
664666

665667
/**
666668
* @brief Define the service for mDNS.
@@ -670,6 +672,7 @@ MDNS::~MDNS() {
670672
* @param [in] port
671673
* @return N/A.
672674
*/
675+
/*
673676
void MDNS::serviceAdd(const std::string& service, const std::string& proto, uint16_t port) {
674677
serviceAdd(service.c_str(), proto.c_str(), port);
675678
} // serviceAdd
@@ -688,28 +691,31 @@ void MDNS::servicePortSet(const std::string& service, const std::string& proto,
688691
void MDNS::serviceRemove(const std::string& service, const std::string& proto) {
689692
serviceRemove(service.c_str(), proto.c_str());
690693
} // serviceRemove
691-
694+
*/
692695

693696
/**
694697
* @brief Set the mDNS hostname.
695698
*
696699
* @param [in] hostname The host name to set against the mDNS.
697700
* @return N/A.
698701
*/
702+
/*
699703
void MDNS::setHostname(const std::string& hostname) {
700704
setHostname(hostname.c_str());
701705
} // setHostname
702-
706+
*/
703707

704708
/**
705709
* @brief Set the mDNS instance.
706710
*
707711
* @param [in] instance The instance name to set against the mDNS.
708712
* @return N/A.
709713
*/
714+
/*
710715
void MDNS::setInstance(const std::string& instance) {
711716
setInstance(instance.c_str());
712717
} // setInstance
718+
*/
713719

714720
/**
715721
* @brief Define the service for mDNS.
@@ -719,6 +725,7 @@ void MDNS::setInstance(const std::string& instance) {
719725
* @param [in] port
720726
* @return N/A.
721727
*/
728+
/*
722729
void MDNS::serviceAdd(const char* service, const char* proto, uint16_t port) {
723730
esp_err_t errRc = ::mdns_service_add(m_mdns_server, service, proto, port);
724731
if (errRc != ESP_OK) {
@@ -754,32 +761,35 @@ void MDNS::serviceRemove(const char* service, const char* proto) {
754761
}
755762
} // serviceRemove
756763
757-
764+
*/
758765
/**
759766
* @brief Set the mDNS hostname.
760767
*
761768
* @param [in] hostname The host name to set against the mDNS.
762769
* @return N/A.
763770
*/
771+
/*
764772
void MDNS::setHostname(const char* hostname) {
765773
esp_err_t errRc = ::mdns_set_hostname(m_mdns_server,hostname);
766774
if (errRc != ESP_OK) {
767775
ESP_LOGE(LOG_TAG, "mdns_set_hostname: rc=%d %s", errRc, GeneralUtils::errorToString(errRc));
768776
abort();
769777
}
770778
} // setHostname
771-
779+
*/
772780

773781
/**
774782
* @brief Set the mDNS instance.
775783
*
776784
* @param [in] instance The instance name to set against the mDNS.
777785
* @return N/A.
778786
*/
787+
/*
779788
void MDNS::setInstance(const char* instance) {
780789
esp_err_t errRc = ::mdns_set_instance(m_mdns_server, instance);
781790
if (errRc != ESP_OK) {
782791
ESP_LOGE(LOG_TAG, "mdns_set_instance: rc=%d %s", errRc, GeneralUtils::errorToString(errRc));
783792
abort();
784793
}
785794
} // setInstance
795+
*/

cpp_utils/WiFi.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
/**
2020
* @brief Manage mDNS server.
2121
*/
22+
/*
2223
class MDNS {
2324
public:
2425
MDNS();
@@ -40,6 +41,7 @@ class MDNS {
4041
private:
4142
mdns_server_t *m_mdns_server = nullptr;
4243
};
44+
*/
4345

4446
class WiFiAPRecord {
4547
public:

0 commit comments

Comments
 (0)
0