|
|
@ -46,6 +46,16 @@ void mdnsSetup() { |
|
|
|
MDNS.addServiceTxt("arduino", "tcp", "app_name", APP_NAME); |
|
|
|
MDNS.addServiceTxt("arduino", "tcp", "app_version", APP_VERSION); |
|
|
|
MDNS.addServiceTxt("arduino", "tcp", "target_board", DEVICE_NAME); |
|
|
|
{ |
|
|
|
char buffer[6]; |
|
|
|
itoa(ESP.getFlashChipRealSize() / 1024, buffer, 10); |
|
|
|
MDNS.addServiceTxt("arduino", "tcp", "mem_size", (const char *) buffer); |
|
|
|
} |
|
|
|
{ |
|
|
|
char buffer[6]; |
|
|
|
itoa(ESP.getFlashChipSize() / 1024, buffer, 10); |
|
|
|
MDNS.addServiceTxt("arduino", "tcp", "sdk_size", (const char *) buffer); |
|
|
|
} |
|
|
|
|
|
|
|
_mdns_wifi_onSTA = WiFi.onStationModeGotIP([](WiFiEventStationModeGotIP ipInfo) { |
|
|
|
_mdnsStart(); |
|
|
|