From ff004d9ab9947d00c4333940aff3983844e5783f Mon Sep 17 00:00:00 2001 From: "isha.pardikar@espressif.com" Date: Mon, 6 Mar 2023 15:23:26 +0530 Subject: [PATCH] wifi_prov_mgr : Fixed return value of characteristic read operation --- components/protocomm/src/transports/protocomm_nimble.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/protocomm/src/transports/protocomm_nimble.c b/components/protocomm/src/transports/protocomm_nimble.c index 96d7da909a..acdecc3710 100644 --- a/components/protocomm/src/transports/protocomm_nimble.c +++ b/components/protocomm/src/transports/protocomm_nimble.c @@ -316,8 +316,8 @@ gatt_svr_chr_access(uint16_t conn_handle, uint16_t attr_handle, rc = simple_ble_gatts_get_attr_value(attr_handle, &temp_outlen, &temp_outbuf); if (rc != 0) { - ESP_LOGE(TAG, "Failed to read characteristic with attr_handle = %d", attr_handle); - return rc; + ESP_LOGE(TAG, "Characteristic with attr_handle = %d is not added to the list", attr_handle); + return 0; } rc = os_mbuf_append(ctxt->om, temp_outbuf, temp_outlen);