delete_target_mac[2],delete_target_mac[3],delete_target_mac[4],delete_target_mac[5]);
if(delete_key_flag){
delete_key_flag=0;
- printf("delete_last_device_from_vm start");
+ // printf("delete_last_device_from_vm start");
reconnect_dev=1;
// user_send_cmd_prepare(USER_CTRL_DEL_ALL_REMOTE_INFO, 0, NULL);
delete_last_device_from_vm();
cJSON *data = cJSON_GetObjectItemCaseSensitive(root, "data");
if (cJSON_IsObject(data)) {
// 从data对象中获取"switch_bt_state"字段
- cJSON *switch_bt_state = cJSON_GetObjectItemCaseSensitive(data, "switch_bt_state");
- if (cJSON_IsString(switch_bt_state) && (switch_bt_state->valuestring != NULL)) {
- if (strcmp(switch_bt_state->valuestring, "1") == 0) {
+ cJSON *switch_bt_js = cJSON_GetObjectItemCaseSensitive(data, "switch_bt_state");
+ if (cJSON_IsString(switch_bt_js) && (switch_bt_js->valuestring != NULL)) {
+ if (strcmp(switch_bt_js->valuestring, "1") == 0) {
get_bt_switch=1;
ack_flag=1;
// if (is_bredr_close() == 1) {
switch_bt_state=1;
bk_app_send_smg(OPEN_BR,(char *)&switch_bt_state,1);
- }else if (strcmp(switch_bt_state->valuestring, "0") == 0)
+ }else if (strcmp(switch_bt_js->valuestring, "0") == 0)
{
get_bt_switch=1;
ack_flag=1;