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

Function stopNet

examples/AutoResearch/AutoResearchNet.cpp:418–438  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

416}
417
418fl::json stopNet() {
419 fl::json response = fl::json::object();
420
421 // Stop HTTP server (unified API)
422 if (s_http_server.get()) {
423 s_http_server->stop();
424 s_http_server.reset();
425 s_net_state.http_server_active = false;
426 FL_WARN("[NET] HTTP server stopped");
427 }
428
429 // Stop WiFi
430 if (s_net_state.wifi_ap_active) {
431 esp_wifi_stop();
432 s_net_state.wifi_ap_active = false;
433 FL_WARN("[NET] WiFi AP stopped");
434 }
435
436 response.set("success", true);
437 return response;
438}
439
440#else // !FL_IS_ESP32
441

Callers 1

registerFunctionsMethod · 0.85

Calls 4

getMethod · 0.45
stopMethod · 0.45
resetMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected