#include "common_def.h"\r
#include "pm.h"\r
#include "watchdog.h"\r
+#ifdef SUPPORT_BLE_SERVICE\r
#include "bleService.h"\r
+#endif\r
// #include "hidService.h"\r
// #include "ble_hid_take_photo_server.h"\r
/* after reboot system emmc need write exc info to the file system from sector */\r
#include "alipay_feature.h"\r
#include "securec.h"\r
#include "wearable_log.h"\r
+#ifdef SUPPORT_BLE_SERVICE\r
#include "bleService.h"\r
+#endif\r
#include "alipay_bluetooth.h"\r
\r
// Alipay 蓝牙模块全局变量\r
{\r
case UICheckBox::SELECTED:\r
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "BlueTooth Capability Is Enabled");\r
+ #ifdef SUPPORT_BLE_SERVICE\r
openBle();//主动开启蓝牙\r
+ #else\r
+ init_btaddr_btname();\r
+ #endif\r
break;\r
case UICheckBox::UNSELECTED:\r
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "BlueTooth Capability Is Disabled");\r
+ #ifdef SUPPORT_BLE_SERVICE\r
closeBle();\r
-\r
- // init_btaddr_btname();\r
- // break;\r
- //case UICheckBox::UNSELECTED:\r
- // WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "BlueTooth Capability Is Disabled");\r
- // disable_bt_service();\r
-\r
+ #else\r
+ disable_bt_service();\r
+ #endif \r
break;\r
default:\r
break;\r
#include "bts_a2dp_sink.h"\r
#include "osal_timer.h"\r
#include "bleEvent.h"\r
+#ifdef SUPPORT_BLE_SERVICE\r
#include "app_common_api.h"\r
+#endif\r
#include "../../../../../open_source/openharmony/third_party/cJSON/cJSON.h"\r
#include "errcode.h"\r
\r
* Description: BT HID Service Server Module.\r
*/\r
#include "hidService.h"\r
+#ifdef SUPPORT_BLE_SERVICE\r
#include "bleService.h"\r
+#endif\r
#include "bts_gatt_stru.h"\r
#include "bts_a2dp_source.h"\r
#include "bts_gatt_server.h"\r
/* HID Control Point */\r
ble_hid_add_character_hid_control_point(server_id, srvc_handle);\r
}\r
-#include "bleService.h"\r
+\r
/* 初始化HID device */\r
void ble_hid_server_init(void)\r
{\r