BluetoothClient
Bluetooth client component
The addresses and names of paired Bluetooth devices
Whether Bluetooth is available on the device
Whether Bluetooth is enabled
Whether to invoke SSP (Simple Secure Pairing), which is supported on devices with Bluetooth v2.1 or higher. When working with embedded Bluetooth devices, this property may need to be set to False. For Android 2.0-2.2, this property setting will be ignored.
none
Returns an estimate of the number of bytes that can be received without blocking
Connect to the Bluetooth device with the specified address and the Serial Port Profile (SPP). Returns true if the connection was successful.
Connect to the Bluetooth device with the specified address and UUID. Returns true if the connection was successful.
Disconnect from the connected Bluetooth device.
Checks whether the Bluetooth device with the specified address is paired.
Receive a signed 1-byte number from the connected Bluetooth device.
Receive a signed 2-byte number from the connected Bluetooth device.
Receive a signed 4-byte number from the connected Bluetooth device.
Receive multiple signed byte values from the connected Bluetooth device. If numberOfBytes is less than 0, read until a delimiter byte value is received.
Receive text from the connected Bluetooth device. If numberOfBytes is less than 0, read until a delimiter byte value is received.
Receive an unsigned 1-byte number from the connected Bluetooth device.
Receive a unsigned 2-byte number from the connected Bluetooth device.
Receive a unsigned 4-byte number from the connected Bluetooth device.
Receive multiple unsigned byte values from the connected Bluetooth device. If numberOfBytes is less than 0, read until a delimiter byte value is received.
Send a 1-byte number to the connected Bluetooth device.
Send a 2-byte number to the connected Bluetooth device.
Send a 4-byte number to the connected Bluetooth device.
Send a list of byte values to the connected Bluetooth device.
Send text to the connected Bluetooth device.
Last modified 4yr ago