| 53 | } |
| 54 | |
| 55 | void onConfigurationJson(HttpRequest& request, HttpResponse& response) |
| 56 | { |
| 57 | JsonObjectStream* stream = new JsonObjectStream(); |
| 58 | JsonObject& json = stream->getRoot(); |
| 59 | |
| 60 | json["StaSSID"] = ActiveConfig.StaSSID; |
| 61 | json["StaPassword"] = ActiveConfig.StaPassword; |
| 62 | json["StaEnable"] = ActiveConfig.StaEnable; |
| 63 | |
| 64 | response.sendDataStream(stream, MIME_JSON); |
| 65 | } |
| 66 | void onFile(HttpRequest& request, HttpResponse& response) |
| 67 | { |
| 68 | String file = request.uri.getRelativePath(); |
nothing calls this directly
no test coverage detected