multiple esp_ble_gattc_write_char in ESP_GATTC_WRITE_CHAR_EVT

Alen59
Posts: 25
Joined: Mon Mar 19, 2018 12:00 pm

multiple esp_ble_gattc_write_char in ESP_GATTC_WRITE_CHAR_EVT

Postby Alen59 » Thu Jan 31, 2019 1:21 pm

i am working on a Bluetooth gattc_Multi_Connect that i need to do multiple "esp_ble_gattc_write_char" in "ESP_GATTC_WRITE_CHAR_EVT" event, and get different notification and Manage which one is what in notification/indication, any ideas how can i do this?

FYI:i am stuck with how the server is done and can't change that part

Alen59
Posts: 25
Joined: Mon Mar 19, 2018 12:00 pm

Re: multiple esp_ble_gattc_write_char in ESP_GATTC_WRITE_CHAR_EVT

Postby Alen59 » Mon Feb 04, 2019 12:21 pm

i went through gattc api and i can't find anything there

chegewara
Posts: 2378
Joined: Wed Jun 14, 2017 9:00 pm

Re: multiple esp_ble_gattc_write_char in ESP_GATTC_WRITE_CHAR_EVT

Postby chegewara » Wed Feb 06, 2019 7:05 pm

in esp-idf bt stack is constructed like that:
- for gatt server all connected devices are using the same gattIf and different connId,
- for gatt client all connections to different servers are using different gattIf.

So, if you want to connect to few ble servers then you have to control all data exchange operations at first by gattIf and then by attr_handle.

Who is online

Users browsing this forum: Sang_Huynh and 205 guests