Merge branch 'bugfix/btdm_add_assert_when_no_device_name' into 'master'

component/bt: Fix exception when there is no device name

See merge request idf/esp-idf!2184
This commit is contained in:
Jiang Jiang Jian
2018-04-17 14:19:39 +08:00
3 changed files with 13 additions and 5 deletions
@@ -27,15 +27,17 @@ extern "C" {
/**
*
* @brief Get bluetooth device address. Must use after "esp_bluedroid_enable".
*
*
* @return bluetooth device address (six bytes), or NULL if bluetooth stack is not enabled
*/
const uint8_t *esp_bt_dev_get_address(void);
/**
* @brief Set bluetooth device name. This function should be called after esp_bluedroid_enable()
* completes successfully
* @brief Set bluetooth device name. This function should be called after esp_bluedroid_enable()
* completes successfully.
* A BR/EDR/LE device type shall have a single Bluetooth device name which shall be
* identical irrespective of the physical channel used to perform the name discovery procedure.
*
* @param[in] name : device name to be set
*