Android Question Bluetooth scan only devices that have the same app

Discussion in 'Android Questions' started by Almog, Sep 28, 2018.

  1. Almog

    Almog Active Member Licensed User

  2. Erel

    Erel Administrator Staff Member Licensed User

    All nearby discoverable BT devices will be discovered. If there aren't too many devices then you can try to connect to all of them. You can use a unique UDID so it will not connect to other apps that are listening for connections on the default UDID.
     
  3. Almog

    Almog Active Member Licensed User

    Thank you,

    You can send please an example of how set a unique UDID in the BluetoothManager class?

    Thanks in advance.
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    Call Serial.Listen2("b4a", "abcd1101-0000-1000-8000-00805F9B34FB") instead of Serial.Listen.

    Call Serial.Connect2(Mac, "abcd1101-0000-1000-8000-00805F9B34FB") instead of Serial.Connect.
     
  5. Almog

    Almog Active Member Licensed User

    Thank you very much :).
    Is abcd1101-0000-1000-8000-00805F9B34FB is changable? and is "b4a" is unchangeable?
     
  6. Erel

    Erel Administrator Staff Member Licensed User

    Both can be changed.
     
  7. Almog

    Almog Active Member Licensed User

    OK, thank you
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice