Device control turns off the APP camera and exits the photo preview function
Note: After receiving this command, the app must call the following event to reply to the camera preview shutdown result when the preview is successfully or unsuccessfully turned off
Flutter example:
/// Reply to the camera preview pause result
replyDeviceStopCameraPreviewRequest(
evtBase: _VBusEvtBase.base_app_set,
evtType: _VBusEvtType.app_ble_to_app_stop_camera_preview)
/// Reply to the camera preview pause result
libManager.send(evt: CmdEvtType.replyDeviceStopCameraPreviewRequest, json: jsonEncode(json));
JSON fields sent by the App:
| Field name | Field type | Field description |
|---|---|---|
| error_code | int | Error code 0x00: Success 0x01: Failure |
Example:
{
"error_code":0x00
}