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

receiving error code 7 in advertise init

Hi... See my advertise_init function to add custom 128-bit UUID.As seen in the answer of this post devzone.nordicsemi.com/.../ i have changed uuid_type but still receiving error code 7 (INVALID_PARAM)

           uint8_t      flags = BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE;

	ble_uuid_t adv_uuids[] =
	{
		{BLE_UUID_LBS_SERVICE,       m_lbs.uuid_type },   
	};

	// Build and set advertising data.
	memset(&advdata, 0, sizeof(advdata));

	advdata.name_type               = BLE_ADVDATA_FULL_NAME;
	advdata.include_appearance      = true;
	advdata.flags.size              = sizeof(flags);
	advdata.flags.p_data            = &flags;
	advdata.uuids_more_available.uuid_cnt = sizeof(adv_uuids) / sizeof(adv_uuids[0]);
	advdata.uuids_more_available.p_uuids  = adv_uuids;
Related