Bluetooth Write Function
- Updated2025-07-30
- 3 minute(s) read
Writes data to a Bluetooth network connection.

Inputs/Outputs
connection ID
—
connection ID is a network connection refnum that uniquely identifies the Bluetooth connection.
data in
—
data in contains the data you want to write to the connection. Use one of the following techniques to handle messages that might vary in size:
timeout ms (25000)
—
timeout ms specifies the time, in milliseconds, that the function waits for the connection. The default is 25,000 ms. A value of –1 indicates to wait indefinitely.
error in (no error)
—
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
connection ID out
—
connection ID out returns the same value as connection ID.
bytes written
—
bytes written indicates the number of bytes the function wrote.
error out
—
error out contains error information. This output provides standard error out functionality. |
Examples
Refer to the following example files included with LabVIEW.
- labview\examples\Data Communication\Protocols\Bluetooth\Simple Bluetooth\Simple Bluetooth.lvproj
connection ID
—
data in
—
timeout ms (25000)
—
error in (no error)
—
connection ID out
—
bytes written
—
error out
—