Skip to content

Commit 4e2e1f2

Browse files
fabianomsdevyte
authored andcommitted
AddServiceTxt returning bool (issue #1962) (#4507)
1 parent 4a958c8 commit 4e2e1f2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

libraries/ESP8266mDNS/ESP8266mDNS.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,11 @@ class MDNSResponder {
8181
}
8282

8383
bool addServiceTxt(char *name, char *proto, char * key, char * value);
84-
void addServiceTxt(const char *name, const char *proto, const char *key,const char * value){
85-
addServiceTxt((char *)name, (char *)proto, (char *)key, (char *)value);
84+
bool addServiceTxt(const char *name, const char *proto, const char *key,const char * value){
85+
return addServiceTxt((char *)name, (char *)proto, (char *)key, (char *)value);
8686
}
87-
void addServiceTxt(String name, String proto, String key, String value){
88-
addServiceTxt(name.c_str(), proto.c_str(), key.c_str(), value.c_str());
87+
bool addServiceTxt(String name, String proto, String key, String value){
88+
return addServiceTxt(name.c_str(), proto.c_str(), key.c_str(), value.c_str());
8989
}
9090

9191
int queryService(char *service, char *proto);

0 commit comments

Comments
 (0)