Page 1 of 1
multiple esp_ble_gattc_write_char in ESP_GATTC_WRITE_CHAR_EVT
Posted: Thu Jan 31, 2019 1:21 pm
by Alen59
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
Re: multiple esp_ble_gattc_write_char in ESP_GATTC_WRITE_CHAR_EVT
Posted: Mon Feb 04, 2019 12:21 pm
by Alen59
i went through gattc api and i can't find anything there
Re: multiple esp_ble_gattc_write_char in ESP_GATTC_WRITE_CHAR_EVT
Posted: Wed Feb 06, 2019 7:05 pm
by chegewara
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.