This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How can I add a UUid?

When we add a uuid will follow the steps below

err_code = sd_ble_uuid_vs_add(&nus_base_uuid, &p_nus->uuid_type);

// Add the service.
err_code = sd_ble_gatts_service_add(BLE_GATTS_SRVC_TYPE_PRIMARY,
                                    &ble_uuid,
                                    &p_nus->service_handle);

 return sd_ble_gatts_characteristic_add(p_nus->service_handle,
                                       &char_md,
                                       &attr_char_value,
                                       &p_nus->rx_handles);
Related