3c47e9515c
Update the advertising API according to what has recently been discussed and agreed upon. Naming-wise the most important change is the removal of "EIR" which was confusing since this is mainly used with LE at the moment. The Core Specification Supplement consistently uses the generic terms data and data type to describe what we're dealing with here, so the new names are bt_data and BT_DATA. Another change is to detach the actual data from the struct by converting it from an array to a pointer. This is not only essential for supporting BR/EDR (which has a different length) but to also minimize memory usage. Another change is to require the caller of bt_le_adv_start() to provide the array lengths of the ad and sd paramters. This way we don't have to have the empty (8-byte) element at the end of each array. Lastly, the bt_le_adv_start() logic is slightly modified so that it will always clear the respective data if necessary. Previously the user might have been left with a previous callers data if it passed NULL to the API. Change-Id: I318026ceb1b52bb688edf4dcfed82613bd15c3e1 Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> |
||
---|---|---|
.. | ||
src | ||
Makefile | ||
prj.mdef | ||
prj_arm.conf | ||
prj_x86.conf | ||
testcase.ini |