%% Write BLE Packet Global Header to PCAP File
% Create a PCAP file writer object, specifying the name of the PCAP file.

pcapObj = pcapWriter('FileName','writeBLEheader');

% Specify the Bluetooth low energy (BLE) link type.

bleLinkType = 251;

% Write a global header to the PCAP file.

writeGlobalHeader(pcapObj,bleLinkType);

% Copyright 2020 The MathWorks, Inc.