| 3701 | } |
| 3702 | |
| 3703 | fl::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 | } |