| 143 | } |
| 144 | |
| 145 | void onConfigurationJson(HttpRequest& request, HttpResponse& response) |
| 146 | { |
| 147 | JsonObjectStream* stream = new JsonObjectStream(); |
| 148 | JsonObject json = stream->getRoot(); |
| 149 | |
| 150 | json["StaSSID"] = activeConfig.StaSSID; |
| 151 | json["StaPassword"] = activeConfig.StaPassword; |
| 152 | json["StaEnable"] = activeConfig.StaEnable; |
| 153 | |
| 154 | response.sendDataStream(stream, MIME_JSON); |
| 155 | } |
| 156 | |
| 157 | int onFile(HttpServerConnection& connection, HttpRequest& request, HttpResponse& response) |
| 158 | { |
nothing calls this directly
no test coverage detected