| 128 | } |
| 129 | |
| 130 | void 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 |
nothing calls this directly
no test coverage detected