Helper function to validate the service record being passed to bt_gatt_srv_register_service.
#include <btapi/btgattsrv.h>
int bt_gatt_srv_validate_service(bt_gatt_srv_attrvalue_t *service, char *errstr, uint16_t len)
BlackBerry 10.2.0
The GATT service to be validated.
(Optional) String to provide details on failure.
Length of errstr. Set to 0 if errstr is not used.
This function can be used prior to calling bt_gatt_srv_register_service() to verify that the information in the bt_gatt_srv_attrvalue_t structure is populated correctly. The errstr will be populated with a descriptive string if EINVAL is returned.