%% Decode Corrupted BLE GAP AD Block
% Specify a BLE GAP AD block containing corrupted data values.

dataBlock = ['010106010202']; % Sample BLE GAP AD block with corrupted data values

% Decode the specified BLE GAP AD block. The returned status indicates that the decoding failed due to the corrupted input BLE GAP AD block. In this case, when decoding fails, the BLE GAP AD block configuration object, 'cfgGAP', displays no properties.

[status, cfgGAP] = bleGAPDataBlockDecode(dataBlock)

% Copyright 2019 The MathWorks, Inc.