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

Function gotIP

samples/HttpServer_Bootstrap/app/application.cpp:82–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82void gotIP(IpAddress ip, IpAddress netmask, IpAddress gateway)
83{
84 if(!fileExist("index.html") || !fileExist("bootstrap.css.gz") || !fileExist("jquery.js.gz")) {
85 // Download server content at first
86 downloadContentFiles();
87 } else {
88 startWebServer();
89 }
90}
91
92} // namespace
93

Callers

nothing calls this directly

Calls 3

fileExistFunction · 0.85
downloadContentFilesFunction · 0.70
startWebServerFunction · 0.70

Tested by

no test coverage detected