Generate three unique BLE GAP AD blocks: first one with AD types 'Flags'
and 'Tx power level'
, the second one with AD types 'Advertising interval'
and 'Local name'
and the third one with AD type 'Flags'
and having simultaneous support for low energy (LE) and basic rate/enhanced data rate (BR/EDR) at the host.
Create a configuration object for a BLE GAP AD block and specify the AD types as 'Flags'
and 'Tx power level'
. Assign the values of LED discoverability as 'Limited'
and Tx power level as 45
.
Generate the BLE GAP AD block from the corresponding configuration object.
dataBlock = 6x2 char array
'02'
'01'
'05'
'02'
'0A'
'2D'
Create a configuration object for a BLE GAP AD block, this time with advertising data types as 'Advertising interval'
and 'Local name'
. Specify the values of the advertising interval as 48
, the local name as 'MathWorks'
and the local name shortening as true
.
Generate the BLE GAP AD block from the corresponding configuration object.
dataBlock = 15x2 char array
'03'
'1A'
'30'
'00'
'0A'
'08'
'4D'
'61'
'74'
'68'
'57'
'6F'
'72'
'6B'
'73'
Create a configuration object for a BLE GAP AD block with type 'Flags'
. Specify the values of LE discoverability as 'Limited'
, BR/EDR support as true
, and simultaneous support for LE and BR/EDR as 'Host'
.
Generate the BLE GAP AD block from the corresponding configuration object.
dataBlock = 3x2 char array
'02'
'01'
'11'