this->create_label = ui_utils_label_add(this->view->layout, "Create Bond: ");
elm_label_line_wrap_set(this->create_label, ELM_WRAP_WORD);
- ui_utils_guide_instruction_popup_button(navi, "Instructions:<br/>Test Type One<br/>1.Bluetooth On<br/>2. Create Bonding callback Invoked<br/><br/>Test Type Two<br/>1. Bluetooth Off<br/>2. Correct Error Message Displayed<br/><b>Note:You can also refer info section");
+ ui_utils_guide_instruction_popup_button(navi, "Instructions:<br/>Test Type One<br/>1.Bluetooth On<br/>2. Create Bond with some device and Create Bonding callback Invoked<br/><br/>Test Type Two<br/>1. Bluetooth Off<br/>2. Correct Error Message Displayed<br/><b>Note:You can also refer info section");
char resultc[256] ={0,};
- sprintf(resultc, "result = %s", "Maually ON bluetooth and invoke create bond callback");
+ sprintf(resultc, "result = %s",get_bluetooth_error(ret));
ui_utils_label_set_text(this->create_label, resultc, "left");
ret = bt_device_set_bond_created_cb(Bluetooth_bt_device_bond_created_cb_p, this);
DBG("bt_device_set_bond_created_cb %d", ret);
this->create_label = ui_utils_label_add(this->view->layout, "Destroy Bond: ");
elm_label_line_wrap_set(this->create_label, ELM_WRAP_WORD);
- ui_utils_guide_instruction_popup_button(navi, "Instructions:<br/>Test Type One<br/>1.Bluetooth On<br/>2. Destroy Bonding callback Invoked<br/><br/>Test Type Two<br/>1. Bluetooth Off<br/>2. Correct Error Message Displayed<br/><b>Note:You can also refer info section");
+ ui_utils_guide_instruction_popup_button(navi, "Instructions:<br/>Test Type One<br/>1.Bluetooth On<br/>2. Create bond with device and destroy bond then Destroy Bonding callback Invoked<br/><br/>Test Type Two<br/>1. Bluetooth Off<br/>2. Correct Error Message Displayed<br/><b>Note:You can also refer info section");
char resultc[256] ={0,};
- sprintf(resultc, "result = %s", "Maually ON bluetooth and invoke destroy bond callback");
+ sprintf(resultc, "result = %s",get_bluetooth_error(ret));
ui_utils_label_set_text(this->create_label, resultc, "left");
ret = bt_device_set_bond_destroyed_cb(Bluetooth_bt_device_bond_destroyed_cb_p, this);
RETVM_IF(ret != BT_ERROR_NONE && ret != BT_ERROR_NOT_SUPPORTED, NULL, "bt_device_set_bond_created_cb failed : %s", get_bluetooth_error(ret));
this->disconnect_btn = ui_utils_push_button_add(this, table, "Disconnect", _disconnect_button_pressed_cb);
elm_table_pack(table, this->disconnect_btn, 1, 0, 1, 1);
- elm_object_disabled_set(this->disconnect_btn, EINA_TRUE);
-
this->read_btn = ui_utils_push_button_add(this, table, "Read", _read_button_pressed_cb);
elm_table_pack(table, this->read_btn, 0, 1, 1, 1);
if(this->view->tbt_info->apptype == TBT_APP_BLE_GATT_CLIENT)
{
//Discover Bluetooth LE Devices
+ elm_object_disabled_set(this->disconnect_btn, EINA_TRUE);
+ DBG("TBT Discovery Started...");
discover_bluetooth_le(this);
+ DBG("TBT Discovery Completed...");
}
else if(this->view->tbt_info->apptype == TBT_APP_BLE_GATT_SERVER)
{
DBG("remote_server_address %s", this->remote_server_address);
result = bt_gatt_disconnect(this->remote_server_address);
RETM_IF(result != BT_ERROR_NONE, "bt_gatt_disconnect failed --> error: %s", get_bluetooth_error(result));
-
+ elm_object_disabled_set(this->disconnect_btn, EINA_TRUE);
}
elm_object_disabled_set(this->read_btn, EINA_TRUE);
elm_object_disabled_set(this->write_btn, EINA_TRUE);
elm_object_disabled_set(this->expand_btn, EINA_TRUE);
+ elm_object_disabled_set(this->disconnect_btn, EINA_FALSE);
break;
}