FastLED 3.9.15
Loading...
Searching...
No Matches

◆ stopBleRemote()

fl::json AutoResearchRemoteControl::stopBleRemote ( )

Stop BLE remote (destroys BLE Remote + GATT server)

Returns
JSON result from stopBle()

Definition at line 3703 of file AutoResearchRemote.cpp.

3703 {
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}
static json object() FL_NOEXCEPT
Definition json.h:692

References mPendingBleStop, and fl::json::object().

Referenced by registerFunctions().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: