#include "diag_log.h"
#include "ConfigModelC.h"
+
+#include "cywee_hal.h"
namespace OHOS
{
/**************************************************************************************************** */
debugOutputItemInfo[index++] = {index, "save_runtime_log"};
+ debugOutputItemInfo[index++] = {index, "cwm_runtime_log"};
usedLen = index;
/* -------------------------------- Add data -------------------------------- */
// }
// }
}
+ else if (viewId == "cwm_ble_switch")
+ {
+ if (toggleButtonOffline) {
+ if (toggleButtonOffline->GetState() == false) {
+ // send_ppg_cmd_msg(PPG_SERVICE_CMD_TYPE_CLOSE_HRS_BLE);
+ cywee_log_switch(0);
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP,"cwm_ble_switch false");
+ }
+ else {
+ // send_ppg_cmd_msg(PPG_SERVICE_CMD_TYPE_OPEN_HRS_BLE);
+ cywee_log_switch(1);
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP,"cwm_ble_switch true");
+ }
+ } else {
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP,"组件不存在");
+ }
+ return true; //进行UI刷新
+ }
else // 如果点击的是列表中的itemview
{
DebugOutputItemView *debugOutputItemView = static_cast<DebugOutputItemView *>(&view);
}
}
break;
+ case 20:
+ str = "";
+ if(toggleButtonOffline)
+ {
+ if(toggleButtonOffline->IsVisible() == false)
+ {
+ toggleButtonOffline->SetViewId("cwm_ble_switch");
+ toggleButtonOffline->SetVisible(true);
+ }
+ }
+ break;
default:
str = "--";
break;
if(buf != NULL)
printf("cywee_recv_cmd_data len %d , handle 0x%X ,*buf 0x%02X\r\n",event_size,handle,*buf);
/****此处为接收指令,处理后反馈结果的参考**/
- cywee_log_switch(*buf);
+ // cywee_log_switch(*buf);
/*****参考结束****/
}