Hello,
currently I try to implement a GATT server on a nrf51422 with the s310 Softdevice. For testing I use the LightBlue IOS client on an ipad. I can see my GATT server but LightBlue tells me that the peripheral has "No Services". I've implemented one attribute and I can see the attribute and the initial value of the attribute.
I've used sd_ble_gatts_service_add() to add a service and used sd_ble_gatts_characteristic_add() to add an characteristic to that first and only service. What could be the reason for the service to no beeing visible?
I've tried to add a descriptive text to the charateristic by using sd_ble_gatts_descriptor_add() function right after I've used sd_ble_gatts_characteristic_add(). I used BLE_GATT_HANDLE_INVALID as the handle and filled the ble_gatts_attr_t to point to a char array with some text. But I can't find the description in the GATT client and the function doesn't return an error. Any idea what could be wrong here?
The sd_ble_gatts_characteristic_add() function returns 4 handles (ble_gatts_char_handles_t). Under which curcumstances is more than the first (value_handle) filled?
thanks for any help, comments and pointers and kind regards, Torsten