MCPcopy Create free account
hub / github.com/SmingHub/Sming / gotIP

Function gotIP

samples/UdpServer_mDNS/app/application.cpp:130–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130void gotIP(IpAddress ip, IpAddress netmask, IpAddress gateway)
131{
132 if(!fileExist("index.html")) {
133 String content = F("<h3>Congrats !! You are Connected to your ESP module with mDNS address %host%.local</h3>");
134 content.replace(F("%host%"), hostName);
135 fileSetContent("index.html", content);
136 }
137 startWebServer();
138 startmDNS(); // Start mDNS "Advertise" of your hostname "test.local" for this example
139}
140
141} // namespace
142

Callers

nothing calls this directly

Calls 6

fileExistFunction · 0.85
fileSetContentFunction · 0.85
startmDNSFunction · 0.85
startWebServerFunction · 0.70
FFunction · 0.50
replaceMethod · 0.45

Tested by

no test coverage detected