Search found 6 matches

by jtantera
Tue Nov 28, 2023 3:52 pm
Forum: General Discussion
Topic: BLE GATTS_READ_EVT - diferenciate via handle
Replies: 9
Views: 8702

Re: BLE GATTS_READ_EVT - diferenciate via handle

What you just told me, make me realize that i was clicking the wrong button on the "nRF Connect" app. Now its replying like it should. Anyways, for all the only read characteristics i will leave ESP_GATT_RSP_BY_APP configuration, meanwhile all the notification characteristics i will leave the ESP_GA...
by jtantera
Tue Nov 28, 2023 10:55 am
Forum: General Discussion
Topic: BLE GATTS_READ_EVT - diferenciate via handle
Replies: 9
Views: 8702

Re: BLE GATTS_READ_EVT - diferenciate via handle

So, i implemented some code and star testing it. Here is how my DB was configured: /* Full Database Description - Used to add attributes into the database */ static const esp_gatts_attr_db_t gatt_db[HRS_IDX_NB] = { // Service Declaration [IDX_SVC] = {{ESP_GATT_AUTO_RSP}, {ESP_UUID_LEN_16, (uint8_t *...
by jtantera
Tue Nov 28, 2023 8:48 am
Forum: General Discussion
Topic: BLE GATTS_READ_EVT - diferenciate via handle
Replies: 9
Views: 8702

Re: BLE GATTS_READ_EVT - diferenciate via handle

Thank you VERY MUCH!
I will try to implement this and let you know how it works.

Again thanks for your time! :D
by jtantera
Mon Nov 27, 2023 2:17 pm
Forum: General Discussion
Topic: BLE GATTS_READ_EVT - diferenciate via handle
Replies: 9
Views: 8702

Re: BLE GATTS_READ_EVT - diferenciate via handle

I think that I understand you. You propose to create this function const esp_gatts_attr_db_t* get_attribute_by_handle(const uint16_t handle) This function returns the index in the table acording to the handle passed. You propoouse tu fill the static uint16_t handle_list[ATTRIBUTE_COUNT] during the E...
by jtantera
Fri Nov 24, 2023 2:42 pm
Forum: General Discussion
Topic: BLE GATTS_READ_EVT - diferenciate via handle
Replies: 9
Views: 8702

Re: BLE GATTS_READ_EVT - diferenciate via handle

The example creates an 'attribute table' and then receives the ESP_GATTS_CREAT_ATTR_TAB_EVT from which it takes the handles of all attributes so that it can later reference a handle back to an attribute. Sorry but i dont quite undertand. I am quite new in ESP32 and specially in Bluetooth BLE. This ...
by jtantera
Thu Nov 23, 2023 4:36 pm
Forum: General Discussion
Topic: BLE GATTS_READ_EVT - diferenciate via handle
Replies: 9
Views: 8702

BLE GATTS_READ_EVT - diferenciate via handle

Hi to all. I am making a bluetooth BLE aplication and i want to create serveral characteristics under the same service, some of those are for Notify, some are for Read and some for Write. I had made the Notify ones and they work as i want. I have a function that its called via a timer that indicates...