Examples of BluetoothTCPClient


Examples of org.javabluetooth.distributed.BluetoothTCPClient

        Debug.println(6,"Result Bytes",attrBytes);
        DataElement reparsed = new DataElement(attrBytes);
        System.out.println("Reparsed Attributes="+reparsed);
        */

        BluetoothStack.init(new BluetoothTCPClient("192.168.10.2", 2600));
        BluetoothStack bluetooth = BluetoothStack.getBluetoothStack();
        bluetooth.send_HCI_HC_Change_Local_Name("TINI BLUE");
        bluetooth.send_HCI_HC_Write_Event_Filter_Connection_Setup((byte)0x02);
        bluetooth.send_HCI_HC_Write_Event_Filter_Inquiry_Result();
        bluetooth.send_HCI_HC_Write_Scan_Enable((byte)0x03);
View Full Code Here

Examples of org.javabluetooth.distributed.BluetoothTCPClient

*  Demo Application, demonstrating the use of BluetoothTCPClient to provide services.
* @author Christian Lorenz
*/
public class BluetoothServiceProvider {
    public static final void main(String[] args) throws Exception {
        BluetoothStack.init(new BluetoothTCPClient("192.168.10.2", 2600));
        LocalDevice localDev = LocalDevice.getLocalDevice();
        localDev.setDiscoverable(DiscoveryAgent.GIAC);
        L2CAPConnectionNotifier connNotifier = (L2CAPConnectionNotifier)Connector.open("btl2cap://localhost:3;");
        ServiceRecord serviceRecord = connNotifier.getRecord();
        serviceRecord.setAttributeValue(256, new DataElement(DataElement.STRING, "Tini Demo Service"));
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.