This class provides access to the Bluetooth® Serial Port profile on the BlackBerry® device. This access allows the BlackBerry device to connect to a Bluetooth enabled device, send data to a Bluetooth enabled device, receive data from a Bluetooth enabled device, and retrieve information about the state of the Bluetooth Serial Port profile on the Bluetooth enabled device, such as whether the device supports Bluetooth technology.
The sample application uses this class to verify if the BlackBerry device supports Bluetooth technology. If it supports Bluetooth technology, the BlackBerry device then uses this class to establish a connection with another Bluetooth enabled device to send and receive data.
This class provides methods to retrieve information about the BluetoothSerialPort that the class is associated with. One of the BluetoothSerialPort constructors uses this class to associate a Bluetooth enabled client device with a Bluetooth enabled server device.
This interface provides methods to manage I/O events between Bluetooth® connected devices. The methods that this interface implements are invoked when a Bluetooth enabled device connects or disconnects with the BlackBerry® device, when the BlackBerry device sends or receives data using the Bluetooth connection, or when the DTR state changes.
The sample application uses these methods to output text to the BlackBerry device when a connection is opened or closed, send the text input on the Bluetooth client device to the Bluetooth server device, and display text received from the Bluetooth enabled client device on the Bluetooth enabled server device.