%% Decode Corrupted BLE ATT PDU
% Specify a BLE ATT PDU containing corrupted data values.

attPDU = ['09'; '03'; '01'; '00'; '18'; '0D']; % Sample corrupted BLE ATT PDU

% Decode the specified BLE ATT PDU. The returned status indicates that the decoding failed due to mismatched attribute data lengths. In case of failed decoding, BLE ATT PDU configuration object, 'cfgATT', displays no properties.

[status, cfgATT] = bleATTPDUDecode(attPDU)

% Copyright 2018 The MathWorks, Inc.