Package org.javabluetooth.stack

Examples of org.javabluetooth.stack.BluetoothStackLocal


    private static RemoteDevice remoteDevice;
    private static BluetoothStack bluetooth;

    public static final void main(String[] args) throws Exception {
        HCIDriver.init(new UARTTransport("serial0"));
        BluetoothStack.init(new BluetoothStackLocal());
        BluetoothLocalStack blue = new BluetoothLocalStack();
        while (remoteDevice == null) { Thread.sleep(1000); }
        System.out.println("Remote Name is " + remoteDevice.getFriendlyName(false));
        SDPClientChannel sdpChannel = new SDPClientChannel(remoteDevice, blue);
        bluetooth.connectL2CAPChannel(sdpChannel, remoteDevice, (short)0x0001);
View Full Code Here


    }

    public static void main(String[] args) throws BluetoothStateException, ClassNotFoundException, InstantiationException,
        IllegalAccessException, UnsupportedLookAndFeelException, HCIException {
            //BluetoothStack.init(new BluetoothTCPClient("192.168.1.78", 2600));
            BluetoothStack.init(new BluetoothStackLocal());
            UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName()); // get the native OS look and feel
            new BluetoothBrowser("Bluetooth Network Neighborhood"); // create and show the app. (window)
    }
View Full Code Here

TOP

Related Classes of org.javabluetooth.stack.BluetoothStackLocal

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.