%% Create BLE LL Advertising Channel PDU Configuration Object Using Name-Value Pairs
% Create two unique BLE LL advertising channel configuration objects of type 'Scan response' and 'Connection indication' using name-value pairs.
% Create a BLE LL advertising channel PDU configuration object, 'cfgLLAdv', by setting the values of PDU type as 'Scan response', advertiser address as '1234567890AB', and scan response data as '020106020AD3' using name-value pairs. View the corresponding properties.

cfgLLAdv = bleLLAdvertisingChannelPDUConfig(...
    'PDUType','Scan response', ...
    'AdvertiserAddress','1234567890AB', ...
    'ScanResponseData','020106020AD3')

% Create another BLE LL advertising channel PDU configuration object, 'cfgLLAdv', and change the type of PDU to 'Connection indication'. Set the values of the connection interval as 64 and the set of data channels as [0 4 12 16 18 24 25]. View the corresponding properties.

cfgLLAdv = bleLLAdvertisingChannelPDUConfig('PDUType', ...
    'Connection indication');
cfgLLAdv.ConnectionInterval = 64;
cfgLLAdv.UsedChannels       = [0 4 12 16 18 24 25]

% Copyright 2019 The MathWorks, Inc.