Morning,
On a BLE tablet, In a continuous scan for nearby BLE devices the (service) code below returns several surrounding ble devices but not my phone (sony z5 compact). In the tablets bluetooth settings the tablet discovers my phone.
Any ideas.
Thanks in advance.
On a BLE tablet, In a continuous scan for nearby BLE devices the (service) code below returns several surrounding ble devices but not my phone (sony z5 compact). In the tablets bluetooth settings the tablet discovers my phone.
Any ideas.
Thanks in advance.
B4X:
Sub Manager_DeviceFound (Name As String, Id As String, AdvertisingData As Map, RSSI As Double)
Log("Found: " & Name & ", " & Id & ", RSSI = " & RSSI & ", " & AdvertisingData) 'ignore
End If
End Sub
Public Sub StartScan
If manager.State <> manager.STATE_POWERED_ON Then
Log("Not powered on.")
Else If rp.Check(rp.PERMISSION_ACCESS_COARSE_LOCATION) = False Then
Log("No location permission.")
Else
manager.Scan2(Null, True)
End If
End Sub