mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
component/bt : mv demo name
1. mv demo name 2. fix a docs
This commit is contained in:
parent
9f151d745e
commit
142756615b
@ -27,7 +27,7 @@ esp_err_t esp_blufi_register_callbacks(esp_blufi_callbacks_t *callbacks)
|
|||||||
if (esp_bluedroid_get_status() == ESP_BLUEDROID_STATUS_UNINITIALIZED) {
|
if (esp_bluedroid_get_status() == ESP_BLUEDROID_STATUS_UNINITIALIZED) {
|
||||||
return ESP_ERR_INVALID_STATE;
|
return ESP_ERR_INVALID_STATE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (callbacks == NULL) {
|
if (callbacks == NULL) {
|
||||||
return ESP_FAIL;
|
return ESP_FAIL;
|
||||||
}
|
}
|
||||||
@ -44,7 +44,7 @@ esp_err_t esp_blufi_send_wifi_conn_report(wifi_mode_t opmode, esp_blufi_sta_conn
|
|||||||
if (esp_bluedroid_get_status() != ESP_BLUEDROID_STATUS_ENABLED) {
|
if (esp_bluedroid_get_status() != ESP_BLUEDROID_STATUS_ENABLED) {
|
||||||
return ESP_ERR_INVALID_STATE;
|
return ESP_ERR_INVALID_STATE;
|
||||||
}
|
}
|
||||||
|
|
||||||
msg.sig = BTC_SIG_API_CALL;
|
msg.sig = BTC_SIG_API_CALL;
|
||||||
msg.pid = BTC_PID_BLUFI;
|
msg.pid = BTC_PID_BLUFI;
|
||||||
msg.act = BTC_BLUFI_ACT_SEND_CFG_REPORT;
|
msg.act = BTC_BLUFI_ACT_SEND_CFG_REPORT;
|
||||||
@ -64,7 +64,7 @@ esp_err_t esp_blufi_profile_init(void)
|
|||||||
if (esp_bluedroid_get_status() != ESP_BLUEDROID_STATUS_ENABLED) {
|
if (esp_bluedroid_get_status() != ESP_BLUEDROID_STATUS_ENABLED) {
|
||||||
return ESP_ERR_INVALID_STATE;
|
return ESP_ERR_INVALID_STATE;
|
||||||
}
|
}
|
||||||
|
|
||||||
msg.sig = BTC_SIG_API_CALL;
|
msg.sig = BTC_SIG_API_CALL;
|
||||||
msg.pid = BTC_PID_BLUFI;
|
msg.pid = BTC_PID_BLUFI;
|
||||||
msg.act = BTC_BLUFI_ACT_INIT;
|
msg.act = BTC_BLUFI_ACT_INIT;
|
||||||
@ -79,7 +79,7 @@ esp_err_t esp_blufi_profile_deinit(void)
|
|||||||
if (esp_bluedroid_get_status() != ESP_BLUEDROID_STATUS_ENABLED) {
|
if (esp_bluedroid_get_status() != ESP_BLUEDROID_STATUS_ENABLED) {
|
||||||
return ESP_ERR_INVALID_STATE;
|
return ESP_ERR_INVALID_STATE;
|
||||||
}
|
}
|
||||||
|
|
||||||
msg.sig = BTC_SIG_API_CALL;
|
msg.sig = BTC_SIG_API_CALL;
|
||||||
msg.pid = BTC_PID_BLUFI;
|
msg.pid = BTC_PID_BLUFI;
|
||||||
msg.act = BTC_BLUFI_ACT_DEINIT;
|
msg.act = BTC_BLUFI_ACT_DEINIT;
|
||||||
|
@ -441,7 +441,8 @@ esp_err_t esp_ble_gatts_stop_service(uint16_t service_handle);
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief This function is called to read a characteristics descriptor.
|
* @brief Send indicate or notify to GATT client.
|
||||||
|
* Set param need_confirm as false will send notification, otherwise indication.
|
||||||
*
|
*
|
||||||
* @param[in] gatts_if: GATT server access interface
|
* @param[in] gatts_if: GATT server access interface
|
||||||
* @param[in] conn_id - connection id to indicate.
|
* @param[in] conn_id - connection id to indicate.
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
# project subdirectory.
|
# project subdirectory.
|
||||||
#
|
#
|
||||||
|
|
||||||
PROJECT_NAME := gatt_server_table_creat_demo
|
PROJECT_NAME := gatt_server_service_table_demo
|
||||||
|
|
||||||
COMPONENT_ADD_INCLUDEDIRS := components/include
|
COMPONENT_ADD_INCLUDEDIRS := components/include
|
||||||
|
|
Loading…
Reference in New Issue
Block a user