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

Add human readable instance name property

This commit is contained in:
Eric Wilkison
2015-12-15 13:29:59 -08:00
parent 971bd9b75c
commit 8d9f174826
2 changed files with 42 additions and 25 deletions

View File

@ -93,12 +93,21 @@ public:
addServiceTxt(name.c_str(), proto.c_str(), key.c_str(), value.c_str());
}
void enableArduino(uint16_t port, bool auth=false);
void enableArduino(uint16_t port, bool auth=false);
void setInstanceName(char * name);
void setInstanceName(const char * name){
setInstanceName((char*) name);
}
void setInstanceName(String name){
setInstanceName(name.c_str());
}
private:
struct MDNSService * _services;
UdpContext* _conn;
char _hostName[128];
char _hostName[63];
char _instanceName[63];
uint32_t _getOurIp();
uint16_t _getServicePort(char *service, char *proto);