%% Generate On-Off Application Traffic Pattern and Data Packet
% Create an On-Off application traffic pattern object to generate an On-Off data packet.

cfgOnOff = networkTrafficOnOff('GeneratePacket',true);

% Generate an On-Off application traffic pattern and data packet.

[dt,packetSize,packet] = generate(cfgOnOff);

% Copyright 2020 The MathWorks, Inc.