| 278 | } |
| 279 | |
| 280 | fl::json startNetClient() { |
| 281 | fl::json response = fl::json::object(); |
| 282 | |
| 283 | if (!initWifiAP()) { |
| 284 | response.set("success", false); |
| 285 | response.set("error", "Failed to start WiFi AP"); |
| 286 | return response; |
| 287 | } |
| 288 | |
| 289 | response.set("success", true); |
| 290 | response.set("ssid", AUTORESEARCH_NET_SSID); |
| 291 | response.set("password", AUTORESEARCH_NET_PASSWORD); |
| 292 | response.set("gateway_ip", AUTORESEARCH_NET_AP_IP); |
| 293 | return response; |
| 294 | } |
| 295 | |
| 296 | fl::json runNetClientTest(const char* host_ip, uint16_t port) { |
| 297 | fl::json response = fl::json::object(); |
no test coverage detected