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

Method stopBleRemote

examples/AutoResearch/AutoResearchRemote.cpp:3703–3711  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3701}
3702
3703fl::json AutoResearchRemoteControl::stopBleRemote() {
3704 // Defer actual BLE teardown to tick() so the RPC response is sent first.
3705 // BLEDevice::deinit(true) blocks long enough to prevent the response
3706 // from being transmitted over serial before the device resets BLE state.
3707 mPendingBleStop = true;
3708 fl::json response = fl::json::object();
3709 response.set("success", true);
3710 return response;
3711}

Callers 1

registerFunctionsMethod · 0.95

Calls 1

setMethod · 0.45

Tested by

no test coverage detected