** Function: loopOptionsWebUi ** Display options to launch the WebUI **********************************************************************/
| 66 | ** Display options to launch the WebUI |
| 67 | **********************************************************************/ |
| 68 | void loopOptionsWebUi() { |
| 69 | options = { |
| 70 | {"my Network", [=]() { webUIMyNet(); } }, |
| 71 | {"AP mode", [=]() { startWebUi("Launcher", 0, true); }}, |
| 72 | {"Main Menu", [=]() { returnToMenu = true; } }, |
| 73 | }; |
| 74 | |
| 75 | loopOptions(options); |
| 76 | } |
| 77 | |
| 78 | String humanReadableSize(uint64_t bytes) { |
| 79 | if (bytes < 1024) return String(bytes) + " B"; |
no test coverage detected