BluetoothClient
Definition
Use BluetoothClient
to connect your device to other devices using Bluetooth. This component uses the Serial Port Profile (SPP) for communication. If you are interested in using Bluetooth low energy, please see the BluetoothLE extension.
Properties
- AddressesAndNames
- Returns the list of paired Bluetooth devices. Each element of the returned list is a String consisting of the device’s address, a space, and the device’s name.
- Available
- Returns
true
if Bluetooth is available on the device,false
otherwise. - CharacterEncoding
- Returns the character encoding to use when sending and receiving text.
- DelimiterByte
- Returns the delimiter byte to use when passing a negative number for the numberOfBytes parameter when calling ReceiveText, ReceiveSignedBytes, or ReceiveUnsignedBytes.
- DisconnectOnError
- Specifies whether BluetoothClient/BluetoothServer should be disconnected automatically when an error occurs.
- Enabled
- Returns
true
if Bluetooth is enabled,false
otherwise. - HighByteFirst
- Specifies whether numbers are sent and received with the most significant byte first.
- IsConnected
- Returns
frue
if a connection to a Bluetooth device has been made. - PollingRate
- Returns the configured polling rate value of the Bluetooth Client.
- Secure
- Specifies whether a secure connection should be used.