MCPcopy Create free account
hub / github.com/FastLED/FastLED / startNetClient

Function startNetClient

examples/AutoResearch/AutoResearchNet.cpp:280–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278}
279
280fl::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
296fl::json runNetClientTest(const char* host_ip, uint16_t port) {
297 fl::json response = fl::json::object();

Callers 1

registerFunctionsMethod · 0.85

Calls 2

initWifiAPFunction · 0.85
setMethod · 0.45

Tested by

no test coverage detected