%% Decode Corrupted BLE LL Advertising Channel PDU
% Specify a BLE LL advertising channel PDU containing corrupted data values.

pdu = 'D409AB89674523010201'; % Sample corrupted PDU

% Decode the specified BLE LL advertising channel PDU. The returned status indicates that the decoding failed due to corrupted input BLE LL advertising channel PDU. In case of failed decoding, the reason of failure is indicated and the BLE LL advertising channel PDU configuration object, 'cfgLLAdv', displays no properties.

[status, cfgLLAdv] = bleLLAdvertisingChannelPDUDecode(pdu, ...
    'InputFormat','octets')

% Copyright 2019 The MathWorks, Inc.