Unable to add more than 1 characteristic to a service
Posted: 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
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