1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-27 18:02:17 +03:00

Change addServiceTxt to key/val pair

This commit is contained in:
Eric Wilkison
2015-12-15 06:05:35 -08:00
parent 758107f35d
commit 971bd9b75c
2 changed files with 21 additions and 18 deletions

View File

@ -85,12 +85,12 @@ public:
addService(service.c_str(), proto.c_str(), port);
}
bool addServiceTxt(char *name, char *proto, char *txt);
void addServiceTxt(const char *name, const char *proto, const char *txt){
addServiceTxt((char *)name, (char *)proto, (char *)txt);
bool addServiceTxt(char *name, char *proto, char * key, char * value);
void addServiceTxt(const char *name, const char *proto, const char *key,const char * value){
addServiceTxt((char *)name, (char *)proto, (char *)key, (char *)value);
}
void addServiceTxt(String name, String proto, String txt){
addServiceTxt(name.c_str(), proto.c_str(), txt.c_str());
void addServiceTxt(String name, String proto, String key, String value){
addServiceTxt(name.c_str(), proto.c_str(), key.c_str(), value.c_str());
}
void enableArduino(uint16_t port, bool auth=false);