Unable to add more than 1 characteristic to a service

aschweiz
Posts: 16
Joined: Wed Nov 30, 2016 1:57 pm

Unable to add more than 1 characteristic to a service

Postby aschweiz » Wed Dec 21, 2016 3:29 pm

I'm adding two characteristics to a service in the ESP_GATTS_CREATE_EVT event:

gl_test.char_uuid[0].len = ESP_UUID_LEN_16;
gl_test.char_uuid[0].uuid.uuid16 = ...;
esp_ble_gatts_add_char(gl_test.service_handle, &gl_test.char_uuid[0], ESP_GATT_PERM_READ, ESP_GATT_CHAR_PROP_BIT_READ);

gl_test.char_uuid[1].len = ESP_UUID_LEN_16;
gl_test.char_uuid[1].uuid.uuid16 = ...;
esp_ble_gatts_add_char(gl_test.service_handle, &gl_test.char_uuid[1], ESP_GATT_PERM_READ, ESP_GATT_CHAR_PROP_BIT_READ);

For each of them, I get an ESP_GATTS_ADD_CHAR_EVT event. For the second characteristic, the status is 133.

Am I doing something wrong or is there a bug in the implementation?

cheers
Andreas

aschweiz
Posts: 16
Joined: Wed Nov 30, 2016 1:57 pm

(Solved) Re: Unable to add more than 1 characteristic to a service

Postby aschweiz » Wed Jan 04, 2017 3:34 pm

Fyi, it's working fine after I've increased the number of handles in esp_ble_gatts_create_service :-)

Who is online

Users browsing this forum: No registered users and 1 guest