@@ -647,6 +647,7 @@ std::string WiFiAPRecord::toString() {
647
647
return std::string (std::move (info_str));
648
648
} // toString
649
649
650
+ /*
650
651
MDNS::MDNS() {
651
652
esp_err_t errRc = ::mdns_init(TCPIP_ADAPTER_IF_STA, &m_mdns_server);
652
653
if (errRc != ESP_OK) {
@@ -661,6 +662,7 @@ MDNS::~MDNS() {
661
662
}
662
663
m_mdns_server = nullptr;
663
664
}
665
+ */
664
666
665
667
/* *
666
668
* @brief Define the service for mDNS.
@@ -670,6 +672,7 @@ MDNS::~MDNS() {
670
672
* @param [in] port
671
673
* @return N/A.
672
674
*/
675
+ /*
673
676
void MDNS::serviceAdd(const std::string& service, const std::string& proto, uint16_t port) {
674
677
serviceAdd(service.c_str(), proto.c_str(), port);
675
678
} // serviceAdd
@@ -688,28 +691,31 @@ void MDNS::servicePortSet(const std::string& service, const std::string& proto,
688
691
void MDNS::serviceRemove(const std::string& service, const std::string& proto) {
689
692
serviceRemove(service.c_str(), proto.c_str());
690
693
} // serviceRemove
691
-
694
+ */
692
695
693
696
/* *
694
697
* @brief Set the mDNS hostname.
695
698
*
696
699
* @param [in] hostname The host name to set against the mDNS.
697
700
* @return N/A.
698
701
*/
702
+ /*
699
703
void MDNS::setHostname(const std::string& hostname) {
700
704
setHostname(hostname.c_str());
701
705
} // setHostname
702
-
706
+ */
703
707
704
708
/* *
705
709
* @brief Set the mDNS instance.
706
710
*
707
711
* @param [in] instance The instance name to set against the mDNS.
708
712
* @return N/A.
709
713
*/
714
+ /*
710
715
void MDNS::setInstance(const std::string& instance) {
711
716
setInstance(instance.c_str());
712
717
} // setInstance
718
+ */
713
719
714
720
/* *
715
721
* @brief Define the service for mDNS.
@@ -719,6 +725,7 @@ void MDNS::setInstance(const std::string& instance) {
719
725
* @param [in] port
720
726
* @return N/A.
721
727
*/
728
+ /*
722
729
void MDNS::serviceAdd(const char* service, const char* proto, uint16_t port) {
723
730
esp_err_t errRc = ::mdns_service_add(m_mdns_server, service, proto, port);
724
731
if (errRc != ESP_OK) {
@@ -754,32 +761,35 @@ void MDNS::serviceRemove(const char* service, const char* proto) {
754
761
}
755
762
} // serviceRemove
756
763
757
-
764
+ */
758
765
/* *
759
766
* @brief Set the mDNS hostname.
760
767
*
761
768
* @param [in] hostname The host name to set against the mDNS.
762
769
* @return N/A.
763
770
*/
771
+ /*
764
772
void MDNS::setHostname(const char* hostname) {
765
773
esp_err_t errRc = ::mdns_set_hostname(m_mdns_server,hostname);
766
774
if (errRc != ESP_OK) {
767
775
ESP_LOGE(LOG_TAG, "mdns_set_hostname: rc=%d %s", errRc, GeneralUtils::errorToString(errRc));
768
776
abort();
769
777
}
770
778
} // setHostname
771
-
779
+ */
772
780
773
781
/* *
774
782
* @brief Set the mDNS instance.
775
783
*
776
784
* @param [in] instance The instance name to set against the mDNS.
777
785
* @return N/A.
778
786
*/
787
+ /*
779
788
void MDNS::setInstance(const char* instance) {
780
789
esp_err_t errRc = ::mdns_set_instance(m_mdns_server, instance);
781
790
if (errRc != ESP_OK) {
782
791
ESP_LOGE(LOG_TAG, "mdns_set_instance: rc=%d %s", errRc, GeneralUtils::errorToString(errRc));
783
792
abort();
784
793
}
785
794
} // setInstance
795
+ */
0 commit comments