%% Create Link Layer Data Channel PDU Configuration Object
% This example shows how to create a BLE link layer data channel PDU configuration object. It also shows how to change the default property settings by using dot notation or by overriding the default settings by using Name,Value pairs when creating the object.
% Create Object and Then Modify Properties
% Create a BLE link layer data channel PDU configuration object with default settings.

lldatapdu = bleLLDataChannelPDUConfig

%
% Modify the defaults to specify a 'Data (start fragment/complete)' PDU.

lldatapdu.LLID = 'Data (start fragment/complete)'

% Overide Default Property Values During Object Creation
% Create a BLE link layer data channel PDU configuration object, using Name,Value pairs to specify a 'Control' PDU.

lldatapdu2 = bleLLDataChannelPDUConfig('LLID','Control')

% Copyright 2018 The MathWorks, Inc.