Package net.rim.device.api.bluetooth

Examples of net.rim.device.api.bluetooth.BluetoothSerialPort


                _rtf =
                        new RichTextField(
                                "Connect external device and then type something...",
                                Field.NON_FOCUSABLE);
                _port =
                        new BluetoothSerialPort(
                                "Hi there",
                                BluetoothSerialPort.BAUD_115200,
                                BluetoothSerialPort.DATA_FORMAT_PARITY_NONE
                                        | BluetoothSerialPort.DATA_FORMAT_STOP_BITS_1
                                        | BluetoothSerialPort.DATA_FORMAT_DATA_BITS_8,
                                BluetoothSerialPort.FLOW_CONTROL_NONE, 1024,
                                1024, this);
                _deviceName = "unknown";
            } else {
                // Connect to the selected device
                _rtf =
                        new RichTextField("Type something...",
                                Field.NON_FOCUSABLE);
                _port =
                        new BluetoothSerialPort(
                                info,
                                BluetoothSerialPort.BAUD_115200,
                                BluetoothSerialPort.DATA_FORMAT_PARITY_NONE
                                        | BluetoothSerialPort.DATA_FORMAT_STOP_BITS_1
                                        | BluetoothSerialPort.DATA_FORMAT_DATA_BITS_8,
View Full Code Here

TOP

Related Classes of net.rim.device.api.bluetooth.BluetoothSerialPort

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.