1 Reply Latest reply on Sep 1, 2017 12:15 PM by Intel Corporation

    Bluetooth connection with an Android app

    michalt38

      I have to build an Android app using Android Studio that communicate with Edison through Bluetooth. I'm using SPP Verification with RFCOMM and I want to connect Android app to /dev/rfcomm0. My question is which UUID should I use. My android code is simple:

       

      BluetoothAdapter ba = BluetoothAdapter.getDefaultAdapter();

      BluetoothDevice device = ba.getRemoteDevice(mac_address);

      UUID uuid = UUID.fromString("8ce255c0-200a-11e0-ac64-0800200c9a66");

      BluetoothSocket socket = device.createRfcommSocketToServiceRecord(uuid);

      socket.connect();

       

      Is it possible to do this that way?