%% Generate BLE LL Control PDU of Type Connection Update Indication
% Create a BLE LL control PDU configuration object for a control PDU using the default configuration. View the corresponding default properties.

cfgControl = bleLLControlPDUConfig

% Create a BLE LL data channel PDU configuration object for a control PDU of type 'Connection update indication' by configuring the values of link layer identifier (LLID) as 'Control' and ControlConfig as 'cfgControl'. View the corresponding properties.

cfgLLData = bleLLDataChannelPDUConfig('LLID', 'Control', ...
    'ControlConfig', cfgControl)

% Generate a BLE LL data channel PDU of type 'Connection update indication' by using the configuration object 'cfgLLData'. Display the PDU length in octets.

pdu = bleLLDataChannelPDU(cfgLLData);
numel(pdu)/8

% Display the first octet of the generated BLE LL data channel PDU.

pdu(1:8)

% Copyright 2019 The MathWorks, Inc.