addTrafficSource
Download Required: To use addTrafficSource
,
first download the Communications Toolbox Wireless Network Simulation Library add-on. For more
information, see Get and Manage Add-Ons.
Syntax
Description
addTrafficSource(
adds a data traffic source, bluetoothLENodeObj
,trafficSource
)trafficSource
, to the Bluetooth® low energy (LE) node object bluetoothLENodeObj
. The
Role
property of the bluetoothLENode
object must be set to
"isochronous-broadcaster"
or "broadcaster"
.
addTrafficSource(
adds a data traffic source to send data to the specified destination node
bluetoothLENodeObj
,trafficSource
,DestinationNode=destinationNode
)destinationNode
. The Role
property of bluetoothLENode
object must be set to "central"
or
"peripheral"
.
addTrafficSource(
adds a data traffic source to send data to the connected isochronous stream (CIS)
connection, bluetoothLENodeObj
,trafficSource
,DestinationNode=destinationNode
,CISConfig=cisConfig
)cisConfig
of the specified destination node
destinationNode
. The Role
property of bluetoothLENode
object must be set to "central"
or
"peripheral"
.
addTrafficSource(
adds a data traffic source to send data from the specified element of the source mesh node
bluetoothLENodeObj
,trafficSource
,DestinationAddress=destinationElementAddress
,SourceAddress=sourceElementAddress
,varargin)sourceElementAddress
to the specified element of the destination mesh
node destinationElementAddress
. The Role
property of the bluetoothLENode
object must be set to "broadcaster-observer"
.
varargin
specifies one or more name-value arguments of the upper
layer metadata.
addTrafficSource(
additionally specifies the time to live (TTL) for the data communication between the
specified source and destination mesh nodes. The Role
property of the bluetoothLENodeObj
,trafficSource
,DestinationAddress=destinationElementAddress
,SourceAddress=sourceElementAddress
,TTL=ttl
)bluetoothLENode
object must be set to "broadcaster-observer"
.
Note
Reusing the same traffic source object in another
addTrafficSource
function call results in an error.
Examples
Input Arguments
References
[1] Bluetooth Technology Website. “Bluetooth Technology Website | The Official Website of Bluetooth Technology.” Accessed November 12, 2021. https://www.bluetooth.com/.
[2] Bluetooth Core Specifications Working Group. "Bluetooth Core Specification" v5.3. https://www.bluetooth.com/.
Version History
Introduced in R2022a