Examples of UARTTransport


Examples of org.javabluetooth.stack.hci.UARTTransport

import org.javabluetooth.stack.hci.UARTTransport;

/** @author Christian Lorenz */
public class BluetoothServer {
    public static final void main(String[] args) throws Exception {
        HCIDriver.init(new UARTTransport("serial0"));
        HCIDriver hciDriver = HCIDriver.getHCIDriver();
        hciDriver.send_HCI_HC_Reset();
        //SDPServer sddb = SDPServer.getSDPServer(); 
        //byte[] dummyHandle={(byte) 0x00,(byte) 0x01,(byte)0x00,(byte)0x00};
        //UUID browseUUID=new UUID(0x1002);
View Full Code Here

Examples of org.javabluetooth.stack.hci.UARTTransport

public class BluetoothLocalStack implements DiscoveryListener {
    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);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.