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:
@ -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);
|
||||
|
Reference in New Issue
Block a user