1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-21 21:22:31 +03:00

AddServiceTxt returning bool (issue #1962) (#4507)

This commit is contained in:
fabianoms
2018-03-17 20:16:26 -03:00
committed by Develo
parent 4a958c8444
commit 4e2e1f268c

View File

@ -81,11 +81,11 @@ public:
} }
bool addServiceTxt(char *name, char *proto, char * key, char * value); bool addServiceTxt(char *name, char *proto, char * key, char * value);
void addServiceTxt(const char *name, const char *proto, const char *key,const char * value){ bool addServiceTxt(const char *name, const char *proto, const char *key,const char * value){
addServiceTxt((char *)name, (char *)proto, (char *)key, (char *)value); return addServiceTxt((char *)name, (char *)proto, (char *)key, (char *)value);
} }
void addServiceTxt(String name, String proto, String key, String value){ bool addServiceTxt(String name, String proto, String key, String value){
addServiceTxt(name.c_str(), proto.c_str(), key.c_str(), value.c_str()); return addServiceTxt(name.c_str(), proto.c_str(), key.c_str(), value.c_str());
} }
int queryService(char *service, char *proto); int queryService(char *service, char *proto);