From e543dc9a3b3f31cd5c6ffe841e2b193949964a90 Mon Sep 17 00:00:00 2001 From: lly Date: Tue, 10 Nov 2020 10:50:23 +0800 Subject: [PATCH] ble_mesh: stack: Fix wrong declaration of node bind AppKey func --- .../api/core/esp_ble_mesh_local_data_operation_api.c | 4 ++-- .../core/include/esp_ble_mesh_local_data_operation_api.h | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/components/bt/esp_ble_mesh/api/core/esp_ble_mesh_local_data_operation_api.c b/components/bt/esp_ble_mesh/api/core/esp_ble_mesh_local_data_operation_api.c index 932f8a82b3..8513ef828d 100644 --- a/components/bt/esp_ble_mesh/api/core/esp_ble_mesh_local_data_operation_api.c +++ b/components/bt/esp_ble_mesh/api/core/esp_ble_mesh_local_data_operation_api.c @@ -187,8 +187,8 @@ esp_err_t esp_ble_mesh_node_add_local_app_key(const uint8_t app_key[16], uint16_ == BT_STATUS_SUCCESS ? ESP_OK : ESP_FAIL); } -esp_err_t esp_ble_mesh_node_bind_app_key_to_local_model(uint16_t element_addr, uint16_t model_id, - uint16_t company_id, uint16_t app_idx) +esp_err_t esp_ble_mesh_node_bind_app_key_to_local_model(uint16_t element_addr, uint16_t company_id, + uint16_t model_id, uint16_t app_idx) { btc_ble_mesh_prov_args_t arg = {0}; btc_msg_t msg = {0}; diff --git a/components/bt/esp_ble_mesh/api/core/include/esp_ble_mesh_local_data_operation_api.h b/components/bt/esp_ble_mesh/api/core/include/esp_ble_mesh_local_data_operation_api.h index 4cbffabdb2..0475298530 100644 --- a/components/bt/esp_ble_mesh/api/core/include/esp_ble_mesh_local_data_operation_api.h +++ b/components/bt/esp_ble_mesh/api/core/include/esp_ble_mesh_local_data_operation_api.h @@ -194,9 +194,9 @@ esp_err_t esp_ble_mesh_node_add_local_app_key(const uint8_t app_key[16], uint16_ * @brief This function is called by Node to bind AppKey to model locally. * * @param[in] element_addr: Node local element address - * @param[in] app_idx: Node local appkey index - * @param[in] model_id: Node local model id * @param[in] company_id: Node local company id + * @param[in] model_id: Node local model id + * @param[in] app_idx: Node local appkey index * * @note If going to bind app_key with local vendor model, the company_id * shall be set to 0xFFFF. @@ -205,8 +205,8 @@ esp_err_t esp_ble_mesh_node_add_local_app_key(const uint8_t app_key[16], uint16_ * @return ESP_OK on success or error code otherwise. * */ -esp_err_t esp_ble_mesh_node_bind_app_key_to_local_model(uint16_t element_addr, uint16_t app_idx, - uint16_t model_id, uint16_t company_id); +esp_err_t esp_ble_mesh_node_bind_app_key_to_local_model(uint16_t element_addr, uint16_t company_id, + uint16_t model_id, uint16_t app_idx); #ifdef __cplusplus }