iOS Question BLE filter peripherals with Id instead of Name?

Discussion in 'iOS Questions' started by megaB4x, Jun 13, 2015.

  1. megaB4x

    megaB4x Member Licensed User

    Hello,

    In Manager_DeviceFound event I can't filter down BLE device with Id:

    If Name = "TestName" Then
    manager.StopScan
    manager.connect(Id)
    End If

    Above code works fine but conditional statement with Id doesn't work

    If Id = "TestID" Then
    manager.StopScan
    manager.connect(Id)
    End If


    Any ideas?

    Thanks
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Put a breakpoint on that line and check the value of Id.
     
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