%% Create Attribute PDU Configuration Object
% This example shows how to create a BLE attribute (ATT) 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 ATT PDU configuration object with default settings.

attpdu = bleATTPDUConfig

%
% Modify the defaults to specify a 'Read blob request' operation code.

attpdu.Opcode = 'Read blob request'

% Override Default Property Values During Object Creation
% Create a BLE ATT PDU configuration object, using Name,Value pairs to specify 'Information request' for the operation code of a request PDU that caused an error.

lldatapdu2 = bleATTPDUConfig('RequestedOpcode','Information request')

% Copyright 2018 The MathWorks, Inc.